mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-24 06:29:09 +00:00
[NFC] polish colossalai/engine/gradient_handler/utils.py code style (#2708)
This commit is contained in:
parent
6427c406cf
commit
4ac8bfb072
@ -1,7 +1,8 @@
|
||||
from typing import Iterable
|
||||
|
||||
import torch.distributed as dist
|
||||
import torch.nn as nn
|
||||
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
|
||||
from typing import Iterable
|
||||
|
||||
|
||||
def bucket_allreduce(param_list: Iterable[nn.Parameter], group=None):
|
||||
|
Loading…
Reference in New Issue
Block a user