[NFC] polish colossalai/amp/apex_amp/__init__.py code style (#1853)

pull/1855/head
LuGY 2022-11-09 14:49:42 +08:00 committed by GitHub
parent 32c8a03389
commit 94329fc139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
from .apex_amp import ApexAMPOptimizer
import torch.nn as nn import torch.nn as nn
from torch.optim import Optimizer from torch.optim import Optimizer
from .apex_amp import ApexAMPOptimizer
def convert_to_apex_amp(model: nn.Module, optimizer: Optimizer, amp_config): def convert_to_apex_amp(model: nn.Module, optimizer: Optimizer, amp_config):
r"""A helper function to wrap training components with Apex AMP modules r"""A helper function to wrap training components with Apex AMP modules