ColossalAI/colossalai/tensor/__init__.py

13 lines
479 B
Python
Raw Normal View History

from .spec import ComputePattern, ParallelAction, TensorSpec, ShardPattern
2022-04-21 06:15:48 +00:00
from .op_wrapper import (
colo_op_impl,)
from .colo_tensor import ColoTensor
from .utils import convert_parameter, named_params_with_colotensor
2022-04-21 06:15:48 +00:00
from ._ops import *
from .optim.colo_optimizer import ColoOptimizer
2022-04-21 06:15:48 +00:00
__all__ = [
'ColoTensor', 'convert_parameter', 'colo_op_impl', 'ComputePattern', 'TensorSpec', 'ParallelAction',
'named_params_with_colotensor', 'ShardPattern', 'ColoOptimizer'
]