Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/test_warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from monai.config.deviceconfig import USE_COMPILED
from monai.networks.blocks.warp import Warp
from monai.utils import GridSampleMode, GridSamplePadMode
from tests.utils import SkipIfBeforePyTorchVersion

LOW_POWER_TEST_CASES = [ # run with BUILD_MONAI=1 to test csrc/resample, BUILD_MONAI=0 to test native grid_sample
[
Expand Down Expand Up @@ -103,6 +104,7 @@ def test_ill_shape(self):
with self.assertRaisesRegex(ValueError, ""):
warp_layer(image=torch.arange(4).reshape((1, 1, 2, 2)).to(dtype=torch.float), ddf=torch.zeros(1, 2, 3, 3))

@SkipIfBeforePyTorchVersion((1, 8))
def test_grad(self):
for b in GridSampleMode:
for p in GridSamplePadMode:
Expand Down