Shortcuts

Template Struct IteratorImpl

Inheritance Relationships

Derived Types

Struct Documentation

template<typename Batch>
struct IteratorImpl

Base class for the ValidIterator and SentinelIterator

Subclassed by torch::data::detail::SentinelIterator< Batch >, torch::data::detail::ValidIterator< Batch >

Public Functions

virtual ~IteratorImpl() = default
virtual void next() = 0
virtual Batch &get() = 0
virtual bool operator==(const IteratorImpl &other) const = 0
virtual bool operator==(const ValidIterator<Batch> &other) const = 0
virtual 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