Training Quantized Nets: A Deeper Understanding