Skip to content

Commit dfdc1db

Browse files
ashishfacebook-github-bot
ashish
authored andcommitted
Disable softmax tests on ROCm (pytorch#46793)
Summary: This PR disables the test_softmax and test_softmax_results in test_nn.py that were enabled in pytorch#46363. The softmax tests are causing failure on gfx906 machines. Disabling those until we root cause and fix them on 906. cc: jeffdaily ezyang Pull Request resolved: pytorch#46793 Reviewed By: izdeby Differential Revision: D24539211 Pulled By: ezyang fbshipit-source-id: 633cb9dc497ad6359af85b85a711c4549d772b2a
1 parent 4a581ba commit dfdc1db

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_nn.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10834,6 +10834,8 @@ def test_embedding_padding_idx(self, device, dtype):
1083410834
embedding.zero_grad()
1083510835
self.assertEqual(after, pre)
1083610836

10837+
# Test fails on Vg20
10838+
@skipCUDAIfRocm
1083710839
@dtypesIfCUDA(torch.half, torch.float)
1083810840
@dtypes(torch.float)
1083910841
def test_softmax_results(self, device, dtype):
@@ -11433,6 +11435,8 @@ def test_embedding_max_norm_device(self, device, dtype):
1143311435
self.assertEqual(output[1], output[2])
1143411436
self.assertTrue(output.data.norm(p=2, dim=1).le(1).all())
1143511437

11438+
# Test fails on Vg20
11439+
@skipCUDAIfRocm
1143611440
@onlyCUDA
1143711441
@dtypes(torch.half, torch.float)
1143811442
def test_softmax(self, device, dtype):

0 commit comments

Comments
 (0)