oa::DataLoader

DataLoader class in the OA Data public surface.

Public Types

Public Methods

oa::I64 oa::DataLoader::currentBatch()
oa::Optional<Batch> oa::DataLoader::nextBatch()
oa::I64 oa::DataLoader::numBatches()
void oa::DataLoader::reset()

Constructor & Destructor Documentation

oa::DataLoader::DataLoader( Dataset & inDataset, DataLoaderConfig inConfig = {} )
No public source comment is attached to this declaration.

Parameters

inDataset
Dataset &

inConfig
DataLoaderConfig

Default: {}

Public Method Documentation

oa::I64 oa::DataLoader::currentBatch()
current batch index

Returns

oa::I64

The declared return value.

oa::Optional<Batch> oa::DataLoader::nextBatch()
get next batch as multi-tensor. Returns nullopt when epoch ends.

Returns

oa::Optional<Batch>

The declared return value.

oa::I64 oa::DataLoader::numBatches()
Number of batches per epoch

Returns

oa::I64

The declared return value.

void oa::DataLoader::reset()
reset to beginning of epoch (re-shuffles if enabled)

Returns

void

The declared return value.