Template Struct Sequencer¶
Defined in File sequencers.h
Page Contents
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
Sequencer
accepts a function that yields the next result of aDataLoader
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. TheOrderedSequencer
instead 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¶