[NFC] polish colossalai/engine/gradient_handler/utils.py code style (#2708)

This commit is contained in:
CZYCW
2023-02-15 09:40:08 +08:00
committed by GitHub
parent 6427c406cf
commit 4ac8bfb072

View File

@@ -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):