Photonic integrated reconfigurable linear processors as neural network accelerators