Co-Design of Binarized Deep Learning