2022-02-14 11:35:00 +08:00
|
|
|
|
mindspore.nn.ParameterUpdate
|
|
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
|
|
|
|
.. py:class:: mindspore.nn.ParameterUpdate(param)
|
|
|
|
|
|
|
|
|
|
|
|
更新参数的Cell。
|
|
|
|
|
|
|
|
|
|
|
|
使用输入的 `Tensor` 值更新 `param` 的值。
|
|
|
|
|
|
|
2022-07-25 16:47:23 +08:00
|
|
|
|
参数:
|
|
|
|
|
|
- **param** (Parameter) - 输入的参数。
|
2022-02-14 11:35:00 +08:00
|
|
|
|
|
2022-07-25 16:47:23 +08:00
|
|
|
|
输入:
|
|
|
|
|
|
- **x** (Tensor)- shape和type与 `param` 相同的Tensor。
|
2022-02-14 11:35:00 +08:00
|
|
|
|
|
2022-07-25 16:47:23 +08:00
|
|
|
|
输出:
|
|
|
|
|
|
Tensor,输入 `x`。
|
2022-02-14 11:35:00 +08:00
|
|
|
|
|
2022-07-25 16:47:23 +08:00
|
|
|
|
异常:
|
|
|
|
|
|
- **KeyError** - 指定名称的参数不存在。
|