mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-28 00:07:29 +00:00
[NFC] polish amp.naive_amp.grad_scaler code style
This commit is contained in:
parent
e9635eb493
commit
1559a09fb7
@ -1,12 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
|
||||||
import torch
|
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from colossalai.logging import get_dist_logger
|
|
||||||
from torch import Tensor
|
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
|
import torch
|
||||||
|
from torch import Tensor
|
||||||
|
|
||||||
|
from colossalai.logging import get_dist_logger
|
||||||
|
|
||||||
__all__ = ['BaseGradScaler']
|
__all__ = ['BaseGradScaler']
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user