mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-25 03:31:56 +00:00
[NFC] polish colossalai/amp/apex_amp/__init__.py code style (#1853)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from .apex_amp import ApexAMPOptimizer
|
||||
import torch.nn as nn
|
||||
from torch.optim import Optimizer
|
||||
|
||||
from .apex_amp import ApexAMPOptimizer
|
||||
|
||||
|
||||
def convert_to_apex_amp(model: nn.Module, optimizer: Optimizer, amp_config):
|
||||
r"""A helper function to wrap training components with Apex AMP modules
|
||||
|
Reference in New Issue
Block a user