From 0d9acc9d58f92ea8e49781734a57a769dcf9623d Mon Sep 17 00:00:00 2001 From: VoVAllen Date: Tue, 24 Dec 2019 00:19:25 +0800 Subject: [PATCH] hot fix (#1135) --- tests/compute/test_kernel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/compute/test_kernel.py b/tests/compute/test_kernel.py index 14f6776f9366..67042b6f968c 100644 --- a/tests/compute/test_kernel.py +++ b/tests/compute/test_kernel.py @@ -303,8 +303,8 @@ def rfunc(nodes): def _print_error(a, b): print("ERROR: Test {}_{}_{}_{} broadcast: {} partial: {}". format(lhs, binary_op, rhs, reducer, broadcast, partial)) - print("Nodes", g.nodes()) - print("Edges:" ,g.edges()) + print("lhs", F.asnumpy(lhs).tolist()) + print("rhs", F.asnumpy(rhs).tolist()) for i, (x, y) in enumerate(zip(F.asnumpy(a).flatten(), F.asnumpy(b).flatten())): if not np.allclose(x, y, rtol, atol): print('@{} {} v.s. {}'.format(i, x, y))