[NFC] fix: format (#4270)

* [NFC] polish colossalai/fx/profiler/experimental/profiler_module/embedding.py code style

* [NFC] polish colossalai/communication/utils.py code style

---------

Co-authored-by: Minghao Huang <huangminghao@luchentech.com>
pull/4338/head
dayellow 2023-07-18 13:51:37 +08:00 committed by binmakeswell
parent fee553288b
commit a50d39a143
1 changed files with 2 additions and 1 deletions

View File

@ -1,10 +1,11 @@
from typing import List, Tuple, Union
import torch
import torch.distributed as dist
from colossalai.context.parallel_mode import ParallelMode
from colossalai.core import global_context as gpc
from colossalai.utils import get_current_device
from typing import Union, List, Tuple
TensorShape = Union[torch.Size, List[int], Tuple[int]]