Skip to content

Commit 0da1be6

Browse files
committed
test(transforms): drop redundant SkipIfBeforePyTorchVersion in compile test
MONAI's minimum supported PyTorch is 2.8, so gating the CenterSpatialCrop torch.compile test on (2, 1) never triggers and misleadingly implies older support. Remove the decorator (and its now-unused import). Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk>
1 parent 77b5ce0 commit 0da1be6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/transforms/test_center_spatial_crop.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from monai.transforms import CenterSpatialCrop
2222
from monai.transforms.croppad.array import Crop
2323
from tests.croppers import CropTest
24-
from tests.test_utils import SkipIfBeforePyTorchVersion
2524

2625
TEST_SHAPES = [
2726
[{"roi_size": [2, 2, -1]}, (3, 3, 3, 3), (3, 2, 2, 3), True],
@@ -64,7 +63,6 @@ def test_compute_slices_broadcast(self):
6463
with self.assertRaises(TypeError):
6564
Crop.compute_slices(roi_center="10", roi_size=(4, 6))
6665

67-
@SkipIfBeforePyTorchVersion((2, 1))
6866
def test_torch_compile(self):
6967
prev_track_meta = get_track_meta()
7068
set_track_meta(False)

0 commit comments

Comments
 (0)