Skip to content

Commit

Permalink
use torch.testing.assert_close
Browse files Browse the repository at this point in the history
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
  • Loading branch information
crcrpar committed Aug 22, 2024
1 parent c92e8a8 commit 941b132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thunder/tests/test_inplace_functionalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ def f(x, y, idx, src):
jitted = executor.make_callable(f)
o = jitted(a, b, idx, src)

assert a.allclose(a_)
assert b.allclose(b_)
assert o.allclose(o_)
torch.testing.assert_close(a, a_)
torch.testing.assert_close(b, b_)
torch.testing.assert_close(o, o_)


@instantiate(
Expand Down

0 comments on commit 941b132

Please sign in to comment.