mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-25 15:01:43 +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.distributed as dist
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
|
from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
|
||||||
from typing import Iterable
|
|
||||||
|
|
||||||
|
|
||||||
def bucket_allreduce(param_list: Iterable[nn.Parameter], group=None):
|
def bucket_allreduce(param_list: Iterable[nn.Parameter], group=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user