Skip to content

Commit 29f7b8d

Browse files
eqypytorchmergebot
authored andcommitted
[TF32] Account for TF32 in test_conv_double_backward (pytorch#135716)
Pull Request resolved: pytorch#135716 Approved by: https://github.com/Skylion007
1 parent 7936584 commit 29f7b8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functorch/test_vmap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
PLATFORM_SUPPORTS_CUDNN_ATTENTION,
5151
PLATFORM_SUPPORTS_FLASH_ATTENTION,
5252
PLATFORM_SUPPORTS_MEM_EFF_ATTENTION,
53+
tf32_on_and_off,
5354
with_tf32_off,
5455
)
5556
from torch.testing._internal.common_device_type import (
@@ -4757,6 +4758,7 @@ def test():
47574758

47584759
check_vmap_fallback(self, test, Tensor.fill_)
47594760

4761+
@tf32_on_and_off(0.005)
47604762
def test_conv_double_backward(self, device):
47614763
images = torch.randn(2, 1, 5, 5, device=device)
47624764
weight = torch.randn(2, 1, 2, 2, device=device)

0 commit comments

Comments
 (0)