We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1af566d commit 8b1a801Copy full SHA for 8b1a801
tensorflow_model_optimization/python/core/quantization/keras/quantize.py
@@ -454,7 +454,7 @@ def _quantize(layer): # pylint: disable=missing-docstring
454
# modifications don't affect the original model, or its weights.
455
try:
456
model_copy = _clone_model_with_weights(model)
457
- except ValueError as er:
+ except (ValueError, TypeError) as er:
458
raise ValueError(
459
'Unable to clone model. This generally happens if you used custom '
460
'Keras layers or objects in your model. Please specify them via '
0 commit comments