parent
863dfb24a7
commit
9b694df351
|
@ -11,9 +11,10 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from typing import Any, List, Optional, OrderedDict, Tuple, Union
|
||||
from typing import Any, List, Optional, Tuple, Union
|
||||
|
||||
from torch import Tensor
|
||||
from typing_extensions import OrderedDict
|
||||
|
||||
from pytorch_lightning.loops.loop import Loop
|
||||
from pytorch_lightning.loops.optimization.manual_loop import _OUTPUTS_TYPE as _MANUAL_LOOP_OUTPUTS_TYPE
|
||||
|
|
|
@ -13,12 +13,13 @@
|
|||
# limitations under the License.
|
||||
from dataclasses import dataclass, field
|
||||
from functools import partial
|
||||
from typing import Any, Callable, Dict, List, Optional, OrderedDict, Tuple, Union
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
||||
|
||||
import torch
|
||||
from lightning_utilities.core.rank_zero import WarningCache
|
||||
from torch import Tensor
|
||||
from torch.optim import Optimizer
|
||||
from typing_extensions import OrderedDict
|
||||
|
||||
from pytorch_lightning.accelerators import TPUAccelerator
|
||||
from pytorch_lightning.core.optimizer import LightningOptimizer
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from typing import Any, Callable, Dict, List, Mapping, Optional, OrderedDict, TYPE_CHECKING, Union
|
||||
from typing import Any, Callable, Dict, List, Mapping, Optional, TYPE_CHECKING, Union
|
||||
|
||||
import torch
|
||||
from lightning_utilities.core.imports import RequirementCache
|
||||
|
@ -19,6 +19,7 @@ from lightning_utilities.core.rank_zero import rank_zero_warn
|
|||
from torch import Tensor
|
||||
from torch.nn import Module
|
||||
from torch.optim.optimizer import Optimizer
|
||||
from typing_extensions import OrderedDict
|
||||
|
||||
import pytorch_lightning as pl
|
||||
from lightning_lite.accelerators.cuda import _patch_cuda_is_available
|
||||
|
|
Loading…
Reference in New Issue