Semiconductor neural network