!19118 modify parameter comment
Merge pull request !19118 from changzherui/mod_param_comment
This commit is contained in:
commit
ad615e4aec
|
@ -530,6 +530,7 @@ class Parameter(Tensor_):
|
||||||
Raises:
|
Raises:
|
||||||
RuntimeError: If it is from Initializer, and parallel mode has changed after the Initializer created.
|
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.
|
ValueError: If the length of the layout is less than 3.
|
||||||
|
TypeError: If `layout` is not tuple.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Parameter, the `Parameter` after initializing data. If current `Parameter` was already initialized before,
|
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.
|
parameters in the new parameter tuple are the same as those in the original parameter tuple.
|
||||||
Default: 'same'.
|
Default: 'same'.
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
RuntimeError: If parameter's name is not end with embedding_table.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Tuple, the new Parameter tuple.
|
Tuple, the new Parameter tuple.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue