File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/lightning/pytorch/utilities
tests/tests_pytorch/models Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2828_TORCHMETRICS_GREATER_EQUAL_0_11 = RequirementCache ("torchmetrics>=0.11.0" ) # using new API with task
2929_TORCHMETRICS_GREATER_EQUAL_1_0_0 = RequirementCache ("torchmetrics>=1.0.0" )
3030_TORCH_EQUAL_2_8 = RequirementCache ("torch>=2.8.0,<2.9.0" )
31+ _TORCH_EQUAL_2_9 = RequirementCache ("torch>=2.9.0,<2.10.0" )
3132_TORCH_GREATER_EQUAL_2_8 = compare_version ("torch" , operator .ge , "2.8.0" )
3233
3334_OMEGACONF_AVAILABLE = package_available ("omegaconf" )
Original file line number Diff line number Diff line change 1010from lightning .pytorch .core .module import _TORCH_TRT_AVAILABLE
1111from lightning .pytorch .demos .boring_classes import BoringModel
1212from lightning .pytorch .utilities .exceptions import MisconfigurationException
13+ from lightning .pytorch .utilities .imports import _TORCH_EQUAL_2_9
1314from tests_pytorch .helpers .runif import RunIf
1415
1516
@@ -110,7 +111,14 @@ def test_tensorrt_saves_on_multi_gpu(tmp_path):
110111 [
111112 ("default" , torch .fx .GraphModule ),
112113 ("dynamo" , torch .fx .GraphModule ),
113- ("ts" , torch .jit .ScriptModule ),
114+ pytest .param (
115+ "ts" ,
116+ torch .jit .ScriptModule ,
117+ marks = pytest .mark .skipif (
118+ _TORCH_EQUAL_2_9 ,
119+ reason = "TorchScript IR crashes with torch_tensorrt on PyTorch 2.9" ,
120+ ),
121+ ),
114122 ],
115123)
116124@RunIf (tensorrt = True , min_cuda_gpus = 1 , min_torch = "2.2.0" )
You can’t perform that action at this time.
0 commit comments