diff --git a/docs/api/api_python/nn/mindspore.nn.ParameterUpdate.rst b/docs/api/api_python/nn/mindspore.nn.ParameterUpdate.rst index 1df2ba2e125..18e4bd80aff 100644 --- a/docs/api/api_python/nn/mindspore.nn.ParameterUpdate.rst +++ b/docs/api/api_python/nn/mindspore.nn.ParameterUpdate.rst @@ -14,7 +14,7 @@ mindspore.nn.ParameterUpdate - **x** (Tensor) - shape和type与 `param` 相同的Tensor。 输出: - Tensor,输入 `x`。 + Tensor,更新后的值。 异常: - **KeyError** - 指定名称的参数不存在。 diff --git a/mindspore/python/mindspore/nn/wrap/cell_wrapper.py b/mindspore/python/mindspore/nn/wrap/cell_wrapper.py index dc397bb4f04..4a222e0f96d 100644 --- a/mindspore/python/mindspore/nn/wrap/cell_wrapper.py +++ b/mindspore/python/mindspore/nn/wrap/cell_wrapper.py @@ -725,7 +725,7 @@ class ParameterUpdate(Cell): - **x** (Tensor) - A tensor whose shape and type are the same with `param`. Outputs: - Tensor, the input `x`. + Tensor, the updated value. Raises: KeyError: If parameter with the specified name does not exist.