From dbac18fa6bf2ba8a0bc8ab4549aaed49abe2d70a Mon Sep 17 00:00:00 2001 From: shaojunsong Date: Thu, 2 Mar 2023 10:10:49 +0800 Subject: [PATCH] update docs --- docs/api/api_python/nn/mindspore.nn.ParameterUpdate.rst | 2 +- mindspore/python/mindspore/nn/wrap/cell_wrapper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.