Adaptive multilayer optical neural network with optical thresholding | Synapse