Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
torch::data::detail::SentinelIterator< Batch > Struct Template Reference
Inheritance diagram for torch::data::detail::SentinelIterator< Batch >:
torch::data::detail::IteratorImpl< Batch >

Public Member Functions

void next () override
 
Batch & get () override
 
bool operator== (const IteratorImpl< Batch > &other) const override
 Does double dispatch.
 
bool operator== (const ValidIterator< Batch > &other) const override
 Calls the comparison operator between ValidIterator and SentinelIterator. More...
 
bool operator== (const SentinelIterator< Batch > &other) const override
 Sentinel iterators always compare equal.
 

Detailed Description

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

Definition at line 29 of file iterator.h.

Member Function Documentation

template<typename Batch>
bool torch::data::detail::SentinelIterator< Batch >::operator== ( const ValidIterator< Batch > &  other) const
inlineoverridevirtual

Calls the comparison operator between ValidIterator and SentinelIterator.

Implements torch::data::detail::IteratorImpl< Batch >.

Definition at line 120 of file iterator.h.


The documentation for this struct was generated from the following file: