Browse Source

!10346 fix quant _Observer print bug

From: @yuchaojie
Reviewed-by: @linqingke,@liangchenghui
Signed-off-by: @linqingke
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
24792571b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/nn/layer/quant.py

+ 1
- 1
mindspore/nn/layer/quant.py View File

@@ -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):


Loading…
Cancel
Save