A dataset that can yield data only in batches. More...
#include <base.h>
Public Types | |
using | SelfType = Self |
using | BatchType = Batch |
using | BatchRequestType = BatchRequest |
Public Member Functions | |
virtual Batch | get_batch (BatchRequest request)=0 |
Returns a batch of data given an index. | |
virtual optional< size_t > | size () const =0 |
Returns the size of the dataset, or an empty optional if it is unsized. | |
template<typename TransformType > | |
MapDataset< Self, TransformType > | map (TransformType transform)& |
Creates a MapDataset that applies the given transform to this dataset. | |
template<typename TransformType > | |
MapDataset< Self, TransformType > | map (TransformType transform)&& |
Creates a MapDataset that applies the given transform to this dataset. | |
Static Public Attributes | |
static constexpr bool | is_stateful = detail::is_optional<BatchType>::value |
A dataset that can yield data only in batches.