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 643 B

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