Nanoprinted high-neuron-density optical linear perceptrons performing near-infrared inference on a CMOS chip