Unverified Commit 94329fc1 authored by LuGY's avatar LuGY Committed by GitHub
Browse files

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

parent 32c8a033
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment