mindspore2022/docs/api/api_python/ops/mindspore.ops.GetNext.rst

24 lines
769 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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