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.ops.GetNext.rst 769 B

123456789101112131415161718192021222324
  1. mindspore.ops.GetNext
  2. ======================
  3. .. py:class:: mindspore.ops.GetNext(types, shapes, output_num, shared_name)
  4. 返回数据集队列中的下一个元素。
  5. .. note::
  6. GetNext操作需要联网,且依赖init_dataset接口,不能单独操作。详见 `connect_network_with_dataset` 的源码。
  7. **参数:**
  8. - **types** (list[:class:`mindspore.dtype`]) - 输出的数据类型。
  9. - **shapes** (list[tuple[int]]) - 输出的数据大小。
  10. - **output_num** (int) - 输出编号、 `types` 和 `shapes` 的长度。
  11. - **shared_name** (str) - `init_dataset` 接口名称。
  12. **输入:**
  13. 没有输入。
  14. **输出:**
  15. tuple[Tensor],Dataset的输出。Shape和类型参见 `shapes` 、 `types` 。