mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-07 02:54:10 +00:00
[NFC] polish colossalai/amp/naive_amp/grad_scaler/dynamic_grad_scaler.py code style (#2299)
Co-authored-by: henryqin1997 <henryqin1997@gamil.com>
This commit is contained in:
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
Block a user