tenzr::data::DataLoader::Iterator¶
Forward iterator over the batches of a DataLoader.
#include <dataloader.h>
Public Types¶
| Name | |
|---|---|
| using std::forward_iterator_tag | iterator_category |
| using DataItem | value_type |
| using std::ptrdiff_t | difference_type |
| using const DataItem * | pointer |
| using const DataItem & | reference |
Public Functions¶
| Name | |
|---|---|
| Iterator(DataLoader * loader, size_t batch_idx) | |
| reference | operator*() const |
| pointer | operator->() const |
| Iterator & | operator++() |
| bool | operator==(const Iterator & other) const |
| bool | operator!=(const Iterator & other) const |
Public Types Documentation¶
using iterator_category¶
using value_type¶
using difference_type¶
using pointer¶
using reference¶
Public Functions Documentation¶
function Iterator¶
Parameters:
- loader Owning loader.
- batch_idx Initial batch index.
Construct a batch iterator positioned at batch_idx.