Skip to content

Commit

Permalink
Compare relay and numpy outputs in graph runtime test (apache#2164)
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi authored and tqchen committed Nov 25, 2018
1 parent fd330f1 commit 0fff6b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/python/relay/test_backend_graph_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def check_rts(expr, args, expected_result, mod=None):
eval_result = intrp.evaluate(expr)(*args)
rts_result = graph.evaluate(expr)(*args)
tvm.testing.assert_allclose(eval_result.asnumpy(), rts_result.asnumpy())
tvm.testing.assert_allclose(eval_result.asnumpy(), expected_result)

def test_add_op_scalar():
"""
Expand Down

0 comments on commit 0fff6b8

Please sign in to comment.