Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion test/ops/test_index_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@
DEVICES.append(torch.device('cuda'))


@pytest.mark.parametrize('device', DEVICES)
@pytest.mark.skipif(
torch.__version__.startswith('2.4.0'),
reason="https://github.com/pytorch/pytorch/issues/130619",
)
@pytest.mark.parametrize('device', [
pytest.param('cpu'),
pytest.param(
'cuda', marks=pytest.mark.skipif(
not torch.cuda.is_available(),
reason="CUDA is not available",
)),
])
def test_index_sort(device):
inputs = torch.randperm(100_000, device=device)
ref_sorted_input, ref_indices = torch.sort(inputs, stable=True)
Expand Down
6 changes: 5 additions & 1 deletion test/ops/test_softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def softmax_reference(src, ptr, dim):
return out / out_sum


@pytest.mark.parametrize('dim', list(range(3)))
@pytest.mark.skipif(
torch.__version__.startswith('2.4.0'),
reason="https://github.com/pytorch/pytorch/issues/130619",
)
@pytest.mark.parametrize('dim', [0, 1, 2])
def test_softmax_csr_autograd(dim):
sizes = (16, 32, 64)
src1 = torch.rand(sizes, requires_grad=True)
Expand Down
Loading