Skip to content

Commit

Permalink
Skip test if pytorch isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedorowicz1 committed Apr 17, 2024
1 parent 6f06e37 commit e04fefe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci_test/unit_tests/test_unit_module_periodic_padding.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
from torch import Tensor
import torch.nn.functional as F

try:
from torch import Tensor
import torch.nn.functional as F
except:
pytest.skip("PyTorch is required to run this test.", allow_module_level=True)


@test_util.lbann_test(check_gradients=False)
def test_periodic_padding_2D():
# Prepare reference output
Expand Down

0 comments on commit e04fefe

Please sign in to comment.