Skip to content

Commit

Permalink
hot fix (dmlc#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
VoVAllen authored Dec 23, 2019
1 parent a1b28b3 commit 0d9acc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/compute/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0d9acc9

Please sign in to comment.