Weight discretization in backward error propagation neural networks