will-jl944 4 years ago
parent
commit
598a8d446d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dygraph/paddlex/cv/models/base.py

+ 1 - 1
dygraph/paddlex/cv/models/base.py

@@ -160,7 +160,7 @@ class BaseModel:
                     mode='w') as f:
                 yaml.dump(pruning_info, f)
 
-        if self.status == 'Quantized' and self.quanter is not None:
+        if self.status == 'Quantized' and self.quantizer is not None:
             quant_info = self.get_quant_info()
             with open(
                     osp.join(save_dir, 'quant.yml'), encoding='utf-8',