Shortcuts

Template Struct IteratorImpl

Page Contents

Struct Documentation

template<typename Batch>
struct torch::data::detail::IteratorImpl

Base class for the ValidIterator and SentinelIterator

Public Functions

~IteratorImpl() = default
void next() = 0
Batch &get() = 0
bool operator==(const IteratorImpl &other) const = 0
bool operator==(const ValidIterator<Batch> &other) const = 0
bool operator==(const SentinelIterator<Batch> &other) const = 0

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources