From b74ae12ee3131703d02fdc38aba313f04cfdc6af Mon Sep 17 00:00:00 2001 From: yuchaojie Date: Tue, 22 Dec 2020 19:50:16 +0800 Subject: [PATCH] fix quant _Observer print bug --- mindspore/nn/layer/quant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):