From a40121e4c8e814729e8a65ae2d91253971f6fdcd Mon Sep 17 00:00:00 2001 From: Zhen Wang Date: Tue, 7 May 2019 11:34:56 +0800 Subject: [PATCH] fix the initialization process error. test=develop (#17213) --- .../paddle/fluid/contrib/slim/quantization/quantization_pass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py b/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py index 3809e327943..44767220d06 100644 --- a/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py +++ b/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py @@ -383,7 +383,7 @@ class QuantizationTransformPass(object): data_type = 'float64' if var_node.dtype( ) == core.VarDesc.VarType.FP64 else 'float32' _init_var_node( - scale_in_node, + state_in_node, np.ones( [1], dtype=data_type), self._scope, -- GitLab