From a46bb2e6ab7bcd16803423ce94bbc1f46a3318fd Mon Sep 17 00:00:00 2001 From: Bai Yifan Date: Wed, 15 Jan 2020 10:44:28 +0800 Subject: [PATCH] Fix slim log format, test=develop (#22281) --- python/paddle/fluid/contrib/slim/core/compressor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/contrib/slim/core/compressor.py b/python/paddle/fluid/contrib/slim/core/compressor.py index 2ebcbc1fce3..0faac37b493 100644 --- a/python/paddle/fluid/contrib/slim/core/compressor.py +++ b/python/paddle/fluid/contrib/slim/core/compressor.py @@ -220,7 +220,7 @@ class Context(object): batch_id, eval_graph.out_nodes.keys(), result)) batch_id += 1 - result = np.mean(np.array(results), axis=0) + result = list(np.mean(np.array(results), axis=0)) _logger.info("Final eval result: {}={}".format( eval_graph.out_nodes.keys(), result)) if not isinstance(result, Iterable): -- GitLab