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.DatasetHelper.rst 1.6 kB

4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. mindspore.DatasetHelper
  2. ========================
  3. .. py:class:: mindspore.DatasetHelper(dataset, dataset_sink_mode=True, sink_size=-1, epoch_num=1)
  4. DatasetHelperһMindDataݼ࣬ṩݼϢ
  5. ݲͬģıݼĵڲͬʹͬĵ
  6. .. note::
  7. DatasetHelperĵṩһepochݡ
  8. ****
  9. - **dataset** (Dataset) - ѵݼݼݼAPI :class:`mindspore.dataset` ɣ :class:`mindspore.dataset.ImageFolderDataset`
  10. - **dataset_sink_mode** (bool) - ֵΪTrueʹ :class:`mindspore.ops.GetNext` 豸DeviceͨͨлȡݣHostֱӱݼȡݡĬֵTrue
  11. - **sink_size** (int) - ÿ³е `sink_size` Ϊ-1³ÿepochݼ `sink_size` 0³ÿepoch `sink_size` ݡĬֵ-1
  12. - **epoch_num** (int) - ƴ͵epochĬֵ1
  13. .. py:method:: continue_send()
  14. epochʼʱ豸ݡ
  15. .. py:method:: dynamic_min_max_shapes()
  16. ض̬ݵ״(shape)ΧС״(shape)״(shape)
  17. .. py:method:: get_data_info()
  18. ³ģʽ£ȡǰݵͺ״(shape)ͨ״(shape)̬仯ijʹá
  19. .. py:method:: release()
  20. ͷ³Դ
  21. .. py:method:: sink_size()
  22. ȡÿε `sink_size`
  23. .. py:method:: stop_send()
  24. ֹͣ³ݡ
  25. .. py:method:: types_shapes()
  26. ӵǰеݼȡͺ״(shape)