mirror of https://github.com/hpcaitech/ColossalAI
[NFC] polish colossalai/auto_parallel/tensor_shard/utils/factory.py code style (#2349)
parent
28e2d16794
commit
e11a005c02
|
@ -4,10 +4,11 @@ from functools import reduce
|
||||||
from typing import Dict, List, Optional, Union
|
from typing import Dict, List, Optional, Union
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
from torch.fx.node import Node
|
||||||
|
|
||||||
from colossalai.device.device_mesh import DeviceMesh
|
from colossalai.device.device_mesh import DeviceMesh
|
||||||
from colossalai.tensor.shape_consistency import ShapeConsistencyManager
|
from colossalai.tensor.shape_consistency import ShapeConsistencyManager
|
||||||
from colossalai.tensor.sharding_spec import ShardingSpec
|
from colossalai.tensor.sharding_spec import ShardingSpec
|
||||||
from torch.fx.node import Node
|
|
||||||
|
|
||||||
from ..constants import INFINITY_COST
|
from ..constants import INFINITY_COST
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue