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

pull/2709/head
CZYCW 2 years ago committed by GitHub
parent 6427c406cf
commit 4ac8bfb072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save