Efficient learning algorithms are implemented in a silicon photonic neural network chip