Skip to content

Commit

Permalink
Update test_sparse_attention.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffra authored Sep 3, 2020
1 parent 1661e83 commit 1ebcd6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/test_sparse_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def init_softmax_inputs(Z, H, M, N, scale, rho, block, dtype, dense_x=True, layo


def _skip_on_cuda_compatability():
pytest.skip("Skip these tests for now until we get our docker image fixed.")
if torch.cuda.get_device_capability()[0] != 7:
pytest.skip("needs compute capability 7; v100")
cuda_major = int(torch.version.cuda.split('.')[0]) * 10
Expand Down

0 comments on commit 1ebcd6c

Please sign in to comment.