wraps another data reader and limits the number of samples to read More...
Public Types | |
typedef std::shared_ptr< DataReader > | ptr |
Public Member Functions | |
LimitedSamplesDataReader (int maxSamplesToRead, DataReader::ptr originalDataReader) | |
int | read (int samplesToRead, int maxInputSequenceLength, int *hInputData, int *hActualInputSequenceLengths) override |
reads the batch of smaples/sequences More... | |
void | reset () override |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns. More... | |
std::string | getInfo () override |
get the textual description of the component More... | |
Private Attributes | |
int | gMaxSamplesToRead |
DataReader::ptr | gOriginalDataReader |
int | gCurrentPosition |
wraps another data reader and limits the number of samples to read
|
inherited |
nmtSample::LimitedSamplesDataReader::LimitedSamplesDataReader | ( | int | maxSamplesToRead, |
DataReader::ptr | originalDataReader | ||
) |
|
overridevirtual |
reads the batch of smaples/sequences
Implements nmtSample::DataReader.
|
overridevirtual |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns.
Implements nmtSample::DataReader.
|
overridevirtual |
get the textual description of the component
Implements nmtSample::Component.
|
private |
|
private |
|
private |