We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca2998 commit eb5d597Copy full SHA for eb5d597
tensorflow_model_optimization/python/core/quantization/keras/quantize.py
@@ -399,8 +399,10 @@ def from_config(cls, config):
399
return cls(**config)
400
401
def _quantize(layer): # pylint: disable=missing-docstring
402
- if (layer.name not in layer_quantize_map and
403
- layer.name not in requires_output_quantize):
+ if ((layer.name not in layer_quantize_map and
+ layer.name not in requires_output_quantize) or
404
+ (isinstance(layer, quantize_wrapper.QuantizeWrapper))):
405
+ # It supports for custom QuantizeWrapper.
406
return layer
407
408
if layer.name in requires_output_quantize:
0 commit comments