A simple approach for quantizing neural networks