Browse Source

modify parameter comment

tags/v1.3.0
changzherui 4 years ago
parent
commit
ed4fd17434
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindspore/common/parameter.py

+ 4
- 0
mindspore/common/parameter.py 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.
"""


Loading…
Cancel
Save