google / qkeras

QKeras: a quantization deep learning library for Tensorflow Keras
Apache License 2.0
538 stars 104 forks source link

Disable stochastic behavior when in inference mode #28

Closed jecorona97 closed 4 years ago

jecorona97 commented 4 years ago

Currently, quantizers peform stochastic operations even in inference mode (K.learning_phase() = 0). This mechanism prevents this and uses the non-stochastic version of the quantizer if in inference mode.

Added

Modified:

Some fixes by Claudionor: