mirror of https://github.com/hpcaitech/ColossalAI
[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
parent
fee553288b
commit
a50d39a143
|
@ -1,10 +1,11 @@
|
||||||
|
from typing import List, Tuple, Union
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.distributed as dist
|
import torch.distributed as dist
|
||||||
|
|
||||||
from colossalai.context.parallel_mode import ParallelMode
|
from colossalai.context.parallel_mode import ParallelMode
|
||||||
from colossalai.core import global_context as gpc
|
from colossalai.core import global_context as gpc
|
||||||
from colossalai.utils import get_current_device
|
from colossalai.utils import get_current_device
|
||||||
from typing import Union, List, Tuple
|
|
||||||
|
|
||||||
TensorShape = Union[torch.Size, List[int], Tuple[int]]
|
TensorShape = Union[torch.Size, List[int], Tuple[int]]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue