Turi Create  4.0
turi::style_transfer::InferenceDataIterator Class Reference

#include <toolkits/style_transfer/st_model_trainer.hpp>

Public Member Functions

bool HasNext () const override
 
DataBatch Next () override
 
std::shared_ptr< IteratorPublisher< DataBatch > > AsPublisher ()
 

Detailed Description

Wrapper around DataIterator that duplicates each batch, with each duplicate writing a different style index into every example for each duplicate.

Definition at line 131 of file st_model_trainer.hpp.

Member Function Documentation

◆ AsPublisher()

std::shared_ptr<IteratorPublisher<DataBatch > > turi::neural_net::Iterator< DataBatch >::AsPublisher ( )
inlineinherited

Returns a Publisher wrapping this Iterator.

Definition at line 49 of file combine_iterator.hpp.

◆ HasNext()

bool turi::style_transfer::InferenceDataIterator::HasNext ( ) const
overridevirtual

Returns true as long as the underlying sequence contains more values.

Implements turi::neural_net::Iterator< DataBatch >.

◆ Next()

DataBatch turi::style_transfer::InferenceDataIterator::Next ( )
overridevirtual

Returns the next value in the sequence. May throw on error.

Implements turi::neural_net::Iterator< DataBatch >.


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