File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/lightning/pytorch/strategies/launchers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1717import torch .multiprocessing as mp
1818from typing_extensions import override
1919
20+ from lightning .fabric .utilities .imports import _raise_enterprise_not_available
2021from lightning .pytorch .strategies .launchers .multiprocessing import (
2122 _GlobalStateSnapshot ,
2223 _MultiProcessingLauncher ,
2324 _WorkerOutput ,
2425)
25- from lightning .pytorch .utilities .imports import _raise_if_not_enterprise_not_available
2626
2727if TYPE_CHECKING :
2828 import lightning .pytorch as pl
@@ -47,7 +47,7 @@ class _XLALauncher(_MultiProcessingLauncher):
4747
4848 def __init__ (self , strategy : "pl.strategies.XLAStrategy" ) -> None :
4949 super ().__init__ (strategy )
50- _raise_if_not_enterprise_not_available ()
50+ _raise_enterprise_not_available ()
5151 from pytorch_lightning_enterprise .strategies .xla .launcher import _XLALauncherTrainer as EnterpriseXLALauncher
5252
5353 self .xla_launcher_impl = EnterpriseXLALauncher (strategy )
You can’t perform that action at this time.
0 commit comments