From d0491f411209f9aa00058d4fe957c549895a70d3 Mon Sep 17 00:00:00 2001 From: Bai Yifan Date: Thu, 16 Jan 2020 11:31:43 +0800 Subject: [PATCH] fix log format, test=develop (#22297) --- 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 2ebcbc1fce..0faac37b49 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