mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 12:30:42 +00:00
[Tensor] get named parameters for model using ColoTensors (#874)
This commit is contained in:
@@ -2,8 +2,10 @@ from .spec import ComputePattern, ParallelAction, TensorSpec
|
||||
from .op_wrapper import (
|
||||
colo_op_impl,)
|
||||
from .colo_tensor import ColoTensor
|
||||
from .utils import convert_parameter
|
||||
from .utils import convert_parameter, named_params_with_colotensor
|
||||
from ._ops import *
|
||||
|
||||
__all__ = ['ColoTensor', 'convert_parameter', 'colo_op_impl', 'ComputePattern',
|
||||
'TensorSpec', 'ParallelAction']
|
||||
__all__ = [
|
||||
'ColoTensor', 'convert_parameter', 'colo_op_impl', 'ComputePattern', 'TensorSpec', 'ParallelAction',
|
||||
'named_params_with_colotensor'
|
||||
]
|
||||
|
Reference in New Issue
Block a user