diff --git a/mindspore/nn/layer/quant.py b/mindspore/nn/layer/quant.py index 9fbbfa9080..491ff3f9d8 100644 --- a/mindspore/nn/layer/quant.py +++ b/mindspore/nn/layer/quant.py @@ -157,7 +157,7 @@ class _Observer(Cell): self.quant_dtype = quant_dtype def extend_repr(self): - s = f"dtype={self.dtype}" + s = f"quant_dtype={self.quant_dtype}" return s def construct(self):