An Electro-Photonic System for Accelerating Deep Neural Networks