mirror of https://github.com/hpcaitech/ColossalAI
[NFC] polish colossalai/amp/naive_amp/grad_scaler/dynamic_grad_scaler.py code style (#2299)
Co-authored-by: henryqin1997 <henryqin1997@gamil.com>pull/2317/head
parent
49715a78f0
commit
3041014089
|
@ -1,10 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
import torch
|
||||
from .base_grad_scaler import BaseGradScaler
|
||||
from typing import Optional
|
||||
|
||||
import torch
|
||||
|
||||
from .base_grad_scaler import BaseGradScaler
|
||||
|
||||
__all__ = ['DynamicGradScaler']
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue