You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ParameterTuple.rst 652 B

4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122
  1. mindspore.ParameterTuple
  2. ========================
  3. .. py:class:: mindspore.ParameterTuple(iterable)
  4. 参数元组的类。
  5. .. note::
  6. 该类把网络参数存储到参数元组集合中。
  7. .. py:method:: clone(prefix, init='same')
  8. 按元素克隆 `ParameterTuple` 中的数值,以生成新的 `ParameterTuple` 。
  9. **参数:**
  10. - **prefix** (str) - 参数的命名空间。
  11. - **init** (Union[Tensor, str, numbers.Number]) - 初始化参数的shape和dtype。 `init` 的定义与 `Parameter` API中的定义相同。默认值:'same'。
  12. **返回:**
  13. 新的参数元组。