We show optical waves passing through a nanophotonic medium can perform artificial neural computing. Such a medium exploits sub-wavelength linear and nonlinear scatterers to realize complex input-output mapping far beyond the capabilities of traditional nanophotonic devices.