oa::Dataset

(analogous to torch.utils.data.dataset)

Public Types

Public Methods

Matrix oa::Dataset::getItem(oa::I64 inIndex)
Sample oa::Dataset::getSample(oa::I64 inIndex)
Matrix oa::Dataset::operator[](oa::I64 inIndex)
oa::I64 oa::Dataset::size()

Constructor & Destructor Documentation

void oa::Dataset::~Dataset()
No public source comment is attached to this declaration.

Public Method Documentation

Matrix oa::Dataset::getItem( oa::I64 inIndex )
get single item by index (backward-compat for single-output datasets)

Parameters

inIndex
oa::I64

Returns

Matrix

The declared return value.

Sample oa::Dataset::getSample( oa::I64 inIndex )
get single sample by index (unified path)

Parameters

inIndex
oa::I64

Returns

Sample

The declared return value.

Matrix oa::Dataset::operator[]( oa::I64 inIndex )
operator[] for convenience

Parameters

inIndex
oa::I64

Returns

Matrix

The declared return value.

oa::I64 oa::Dataset::size()
Number of items

Returns

oa::I64

The declared return value.