We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a1e8e commit bdf6927Copy full SHA for bdf6927
src/lightning/pytorch/core/module.py
@@ -79,10 +79,11 @@
79
if TYPE_CHECKING:
80
from torch.distributed.device_mesh import DeviceMesh
81
82
- if _TORCH_GREATER_EQUAL_2_6:
83
- from torch.onnx import ONNXProgram
84
- else:
85
- from torch.onnx._internal.exporter import ONNXProgram
+ if _TORCH_GREATER_EQUAL_2_5:
+ if _TORCH_GREATER_EQUAL_2_6:
+ from torch.onnx import ONNXProgram
+ else:
86
+ from torch.onnx._internal.exporter import ONNXProgram
87
88
warning_cache = WarningCache()
89
log = logging.getLogger(__name__)
0 commit comments