Skip to content

Commit

Permalink
rtol and atol adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewZhaoLuo committed Jun 28, 2021
1 parent 0bcf899 commit effd073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/relay/test_op_level10.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def _verify(prediction_shape, reduction="mean", ignore_index=-100, dtype="float3
for kind in ["graph", "debug"]:
intrp = relay.create_executor(kind, device=dev, target=target)
out_relay = intrp.evaluate(func)(predictions_np, targets_np, weights_np)
tvm.testing.assert_allclose(out_relay.asnumpy(), out_np, rtol=1e-4, atol=1e-5)
tvm.testing.assert_allclose(out_relay.asnumpy(), out_np, rtol=1e-6, atol=1e-6)

_verify((10, 5))
_verify((10, 5, 2, 2))
Expand Down

0 comments on commit effd073

Please sign in to comment.