Skip to content

Commit

Permalink
fix torch import
Browse files Browse the repository at this point in the history
Signed-off-by: Vibhu Jawa <[email protected]>
  • Loading branch information
VibhuJawa committed Jul 31, 2024
1 parent 91dd34d commit 1b02e4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_torch_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import pytest
import torch

from crossfit.utils.torch_utils import concat_and_pad_tensors, pad_tensors

torch = pytest.importorskip("torch")


def test_pad_tensors_2d():
# Test with 2D tensors
Expand Down

0 comments on commit 1b02e4b

Please sign in to comment.