Precision of sum-of-products in analog neural networks