From fda183d3246f453b6dd2b84f8bb1052113eca61a Mon Sep 17 00:00:00 2001 From: ceci3 Date: Fri, 26 Aug 2022 13:45:04 +0800 Subject: [PATCH] fix temporary tensor erase in new exe (#45404) --- .../contrib/slim/quantization/post_training_quantization.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py b/python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py index 7c48e29ebc..46963fde7b 100644 --- a/python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py +++ b/python/paddle/fluid/contrib/slim/quantization/post_training_quantization.py @@ -630,7 +630,6 @@ class PostTrainingQuantization(object): if var.name in self._quantized_act_var_name: var.persistable = False to_erase.append(var.name) - self._scope.erase(to_erase) def _sampling(self): ''' -- GitLab