Turi Create
4.0
|
#include <toolkits/object_detection/od_model_trainer.hpp>
Public Member Functions | |
DataIterator (std::unique_ptr< data_iterator > impl, size_t batch_size, int offset=0) | |
bool | HasNext () const override |
DataBatch | Next () override |
std::shared_ptr< IteratorPublisher< DataBatch > > | AsPublisher () |
Wrapper adapting object_detection::data_iterator to the Iterator interface.
Definition at line 188 of file od_model_trainer.hpp.
|
inline |
impl | The object_detection::data_iterator to wrap |
batch_size | The number of images to request from impl for each batch. |
offset | The number of batches to skip. The first batch produced will have an iteration_id one more than the offset. |
Definition at line 199 of file od_model_trainer.hpp.
|
inlineinherited |
Returns a Publisher wrapping this Iterator.
Definition at line 49 of file combine_iterator.hpp.
|
inlineoverridevirtual |
Returns true as long as the underlying sequence contains more values.
Implements turi::neural_net::Iterator< DataBatch >.
Definition at line 205 of file od_model_trainer.hpp.
|
overridevirtual |
Returns the next value in the sequence. May throw on error.
Implements turi::neural_net::Iterator< DataBatch >.