modify parameter comment

This commit is contained in:
changzherui 2021-06-29 22:35:08 +08:00
parent 417154a8aa
commit ed4fd17434
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.
"""