mindspore2022/docs/api/api_python/dataset/mindspore.dataset.BatchInfo...

16 lines
519 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.dataset.BatchInfo
===========================
.. py:class:: mindspore.dataset.BatchInfo
此类提供了两种方法获取数据集的批处理数量batch size和迭代数epoch属性。
这些属性可以用于 `batch` 操作中的输入参数 `batch_size``per_batch_map`
.. py:method:: get_batch_num()
返回数据集的批处理数量batch size
.. py:method:: get_epoch_num()
返回数据集的迭代数epoch