Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Types | Public Member Functions
torch::data::detail::sequencers::Sequencer< Result > Struct Template Referenceabstract

A Sequencer accepts a function that yields the next result of a DataLoader and then has the opportunity to influence the order in which these results are returned. More...

#include <sequencers.h>

Inheritance diagram for torch::data::detail::sequencers::Sequencer< Result >:
torch::data::detail::sequencers::NoSequencer< Result > torch::data::detail::sequencers::OrderedSequencer< Result >

Public Types

using ResultProducer = std::function< optional< Result >()>
 

Public Member Functions

virtual optional< Result > next (ResultProducer next_result)=0
 

Detailed Description

template<typename Result>
struct torch::data::detail::sequencers::Sequencer< Result >

A Sequencer accepts a function that yields the next result of a DataLoader and then has the opportunity to influence the order in which these results are returned.

The NoSequencer does not enforce any sequencing and returns any result directly. The OrderedSequencer instead buffers results internally to return them in order of their sequence number.

Definition at line 29 of file sequencers.h.


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