Weight discretization paradigm for optical neural networks | Synapse