Skip to content

Commit 5fa4376

Browse files
committed
atol
1 parent fc34f80 commit 5fa4376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_unittests/ut_torch_export_patches/test_patch_torch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_vmap_tuple(self):
6363
x, y = torch.randn(2, 5), torch.randn(5)
6464
expected = torch.vmap(torch.dot, in_dims=(0, None))(x, y)
6565
got = patched_vmap(torch.dot, in_dims=(0, None))(x, y)
66-
self.assertEqualArray(expected, got)
66+
self.assertEqualArray(expected, got, atol=1e-5)
6767

6868
def test_vmap_transformers_scenario_vmap(self):
6969
def padding_mask_function(padding_mask: torch.Tensor) -> Callable:

0 commit comments

Comments
 (0)