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

4 years ago
1234567891011121314151617181920212223242526
  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. RuntimeError:参数名称不以“embedding_table”结尾。
  13. **返回:**
  14. 新的参数元组。