Skip to content

Commit 70fb709

Browse files
speckhardtensorflower-gardener
authored andcommitted
Error message line when cloning model after quantize apply trimmed.
Previously the error message lines were too long. Spaced them across several lines now. PiperOrigin-RevId: 396545548
1 parent 3b55bba commit 70fb709

File tree

1 file changed

+4
-4
lines changed
  • tensorflow_model_optimization/python/core/quantization/keras

1 file changed

+4
-4
lines changed

tensorflow_model_optimization/python/core/quantization/keras/quantize.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@ def _quantize(layer): # pylint: disable=missing-docstring
411411
model_copy = _clone_model_with_weights(model)
412412
except ValueError:
413413
raise ValueError(
414-
'Unable to clone model. This generally happens if you used custom Keras layers or objects '
415-
'in your model. Please specify them via `quantize_scope` for your calls to `quantize_model` '
416-
'and `quantize_apply`.'
417-
)
414+
'Unable to clone model. This generally happens if you used custom '
415+
'Keras layers or objects in your model. Please specify them via '
416+
'`quantize_scope` for your calls to `quantize_model` and '
417+
'`quantize_apply`.')
418418

419419
# 2. Remove QuantizeAnnotate wrappers from the layers in the model. This
420420
# extracts the original model structure (easier to transform), and

0 commit comments

Comments
 (0)