Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 29, 2024
1 parent b20468c commit 68b69f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/common/h2d_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def from_njt(cls, njt_tensor):
_offsets=njt_tensor._offsets,
_lengths=njt_tensor._lengths,
njt_shape=njt_tensor.size(0),
)
).clone()


@pytest.fixture(autouse=True, scope="function")
Expand Down Expand Up @@ -148,6 +148,7 @@ def consolidate(td, num_threads):
@pytest.mark.skipif(
TORCH_VERSION < version.parse("2.5.1"), reason="requires torch>=2.5"
)
@pytest.mark.skipif(not torch.cuda.is_available(), reason="no CUDA device found")
class TestTo:
def test_to(
self, benchmark, consolidated, td, default_device, compile_mode, num_threads
Expand Down

0 comments on commit 68b69f0

Please sign in to comment.