Skip to content

Commit

Permalink
Fix 2.5.1 failing sparsity test (#1261)
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
jcaip authored Nov 11, 2024
1 parent 75f52ae commit a827d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/prototype/test_sparse_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
TORCH_VERSION_AT_LEAST_2_3,
TORCH_VERSION_AT_LEAST_2_4,
TORCH_VERSION_AT_LEAST_2_5,
TORCH_VERSION_AT_LEAST_2_6,
)


Expand Down Expand Up @@ -161,7 +162,7 @@ def test_sparse(self, compile):


class TestQuantBlockSparseWeight(common_utils.TestCase):
@unittest.skipIf(not TORCH_VERSION_AFTER_2_5, "pytorch 2.6+ feature")
@unittest.skipIf(not TORCH_VERSION_AT_LEAST_2_6, "pytorch 2.6+ feature")
@unittest.skipIf(not torch.cuda.is_available(), "Need CUDA available")
@common_utils.parametrize("compile", [True, False])
def test_sparse(self, compile):
Expand Down

0 comments on commit a827d04

Please sign in to comment.