We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc34f80 commit 5fa4376Copy full SHA for 5fa4376
_unittests/ut_torch_export_patches/test_patch_torch.py
@@ -63,7 +63,7 @@ def test_vmap_tuple(self):
63
x, y = torch.randn(2, 5), torch.randn(5)
64
expected = torch.vmap(torch.dot, in_dims=(0, None))(x, y)
65
got = patched_vmap(torch.dot, in_dims=(0, None))(x, y)
66
- self.assertEqualArray(expected, got)
+ self.assertEqualArray(expected, got, atol=1e-5)
67
68
def test_vmap_transformers_scenario_vmap(self):
69
def padding_mask_function(padding_mask: torch.Tensor) -> Callable:
0 commit comments