LUTNet: speeding up deep neural network inferencing via look-up tables