CBP: backpropagation with constraint on weight precision using a pseudo-Lagrange multiplier method