Template Struct Sequencer#
Defined in File sequencers.h
Inheritance Relationships#
Derived Types#
public torch::data::detail::sequencers::NoSequencer< Result >(Template Struct NoSequencer)public torch::data::detail::sequencers::OrderedSequencer< Result >(Template Struct OrderedSequencer)
Struct Documentation#
-
template<typename Result>
struct Sequencer# A
Sequenceraccepts a function that yields the next result of aDataLoaderand then has the opportunity to influence the order in which these results are returned.The
NoSequencerdoes not enforce any sequencing and returns any result directly. TheOrderedSequencerinstead buffers results internally to return them in order of their sequence number.Subclassed by torch::data::detail::sequencers::NoSequencer< Result >, torch::data::detail::sequencers::OrderedSequencer< Result >
Public Functions
-
virtual ~Sequencer() = default#
-
virtual std::optional<Result> next(ResultProducer next_result) = 0#
-
virtual ~Sequencer() = default#