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

15 lines
475 B
ReStructuredText
Raw Permalink 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` 操作中,参数 `batch_size``per_batch_map` 的传入对象是回调函数时,可以通过此类提供的方法获取数据集信息。
.. py:method:: get_batch_num()
返回当前epoch已经处理的batch数数值从0开始。
.. py:method:: get_epoch_num()
返回当前的epoch数数值从0开始。