!19118 modify parameter comment

Merge pull request !19118 from changzherui/mod_param_comment
This commit is contained in:
i-robot 2021-06-30 06:14:00 +00:00 committed by Gitee
commit ad615e4aec
1 changed files with 4 additions and 0 deletions

View File

@ -530,6 +530,7 @@ class Parameter(Tensor_):
Raises:
RuntimeError: If it is from Initializer, and parallel mode has changed after the Initializer created.
ValueError: If the length of the layout is less than 3.
TypeError: If `layout` is not tuple.
Returns:
Parameter, the `Parameter` after initializing data. If current `Parameter` was already initialized before,
@ -613,6 +614,9 @@ class ParameterTuple(tuple):
parameters in the new parameter tuple are the same as those in the original parameter tuple.
Default: 'same'.
Raises:
RuntimeError: If parameter's name is not end with embedding_table.
Returns:
Tuple, the new Parameter tuple.
"""