Template Struct SentinelIterator¶
Defined in File iterator.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::data::detail::IteratorImpl< Batch >(Template Struct IteratorImpl)
Struct Documentation¶
-
template<typename Batch>
struct SentinelIterator : public torch::data::detail::IteratorImpl<Batch>¶ Public Functions
-
inline virtual void next() override¶
-
inline virtual bool operator==(const IteratorImpl<Batch> &other) const override¶
Does double dispatch.
-
inline virtual bool operator==(const ValidIterator<Batch> &other) const override¶
Calls the comparison operator between
ValidIteratorandSentinelIterator.
-
inline virtual bool operator==(const SentinelIterator<Batch> &other) const override¶
Sentinel iterators always compare equal.
-
inline virtual void next() override¶