ColossalAI/colossalai/tensor/__init__.py

19 lines
744 B
Python
Raw Normal View History

from .process_group import ProcessGroup
from .tensor_spec import ColoTensorSpec
from .distspec import ShardSpec
from .distspec import ReplicaSpec
from .compute_spec import ComputeSpec, ComputePattern
2022-04-21 06:15:48 +00:00
from .colo_tensor import ColoTensor
2022-05-06 04:57:14 +00:00
from .colo_parameter import ColoParameter
from .utils import convert_parameter, named_params_with_colotensor
from .dist_spec_mgr import DistSpecManager
from .param_op_hook import ParamOpHook, ParamOpHookManager
from . import distspec
2022-04-21 06:15:48 +00:00
__all__ = [
'ColoTensor', 'convert_parameter', 'ComputePattern', 'ComputeSpec', 'named_params_with_colotensor', 'ColoParameter',
'distspec', 'DistSpecManager', 'ParamOpHook', 'ParamOpHookManager', 'ProcessGroup', 'ColoTensorSpec', 'ShardSpec',
'ReplicaSpec'
]