Skip to content

Commit bdf6927

Browse files
committed
import
1 parent d6a1e8e commit bdf6927

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/lightning/pytorch/core/module.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@
7979
if TYPE_CHECKING:
8080
from torch.distributed.device_mesh import DeviceMesh
8181

82-
if _TORCH_GREATER_EQUAL_2_6:
83-
from torch.onnx import ONNXProgram
84-
else:
85-
from torch.onnx._internal.exporter import ONNXProgram
82+
if _TORCH_GREATER_EQUAL_2_5:
83+
if _TORCH_GREATER_EQUAL_2_6:
84+
from torch.onnx import ONNXProgram
85+
else:
86+
from torch.onnx._internal.exporter import ONNXProgram
8687

8788
warning_cache = WarningCache()
8889
log = logging.getLogger(__name__)

0 commit comments

Comments
 (0)