Natural Quantization of Neural Networks