diff --git a/python/paddle/fluid/contrib/slim/quantization/quantization_strategy.py b/python/paddle/fluid/contrib/slim/quantization/quantization_strategy.py index da3510de39813bce61bbcdf7c26acdd6280cee2a..aa50891121f5454cf6bd43264a9ee86e8e0717ed 100644 --- a/python/paddle/fluid/contrib/slim/quantization/quantization_strategy.py +++ b/python/paddle/fluid/contrib/slim/quantization/quantization_strategy.py @@ -158,7 +158,7 @@ class QuantizationStrategy(Strategy): ] if self.save_in_nodes == None: - in_vars = list(context.eval_graph.out_nodes.values()) + in_vars = list(context.eval_graph.in_nodes.values()) else: in_vars = self.save_in_nodes