forked from mindspore-Ecosystem/mindspore
25 lines
514 B
ReStructuredText
25 lines
514 B
ReStructuredText
|
|
mindspore.nn.ParameterUpdate
|
|||
|
|
=========================================
|
|||
|
|
|
|||
|
|
.. py:class:: mindspore.nn.ParameterUpdate(param)
|
|||
|
|
|
|||
|
|
更新参数的Cell。
|
|||
|
|
|
|||
|
|
使用输入的 `Tensor` 值更新 `param` 的值。
|
|||
|
|
|
|||
|
|
**参数:**
|
|||
|
|
|
|||
|
|
- **param** (Parameter) - 输入的参数。
|
|||
|
|
|
|||
|
|
**输入:**
|
|||
|
|
|
|||
|
|
- **x** (Tensor)- shape和类型与 `param` 相同的Tensor。
|
|||
|
|
|
|||
|
|
**输出:**
|
|||
|
|
|
|||
|
|
Tensor,输入 `x`。
|
|||
|
|
|
|||
|
|
**异常:**
|
|||
|
|
|
|||
|
|
- **KeyError** - 指定名称的参数不存在。
|