reader of sequences of data More...
Public Types | |
typedef std::shared_ptr< DataReader > | ptr |
Public Member Functions | |
DataReader ()=default | |
virtual int | read (int samplesToRead, int maxInputSequenceLength, int *hInputData, int *hActualInputSequenceLengths)=0 |
reads the batch of smaples/sequences More... | |
virtual void | reset ()=0 |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns. More... | |
~DataReader () override=default | |
virtual std::string | getInfo ()=0 |
get the textual description of the component More... | |
reader of sequences of data
typedef std::shared_ptr<DataReader> nmtSample::DataReader::ptr |
|
default |
|
overridedefault |
|
pure virtual |
reads the batch of smaples/sequences
Implemented in nmtSample::TextReader, and nmtSample::LimitedSamplesDataReader.
|
pure virtual |
Reset the reader position, the data reader is ready to read the data from th ebeginning again after the function returns.
Implemented in nmtSample::TextReader, and nmtSample::LimitedSamplesDataReader.
|
pure virtualinherited |
get the textual description of the component
Implemented in nmtSample::SoftmaxLikelihood, nmtSample::BeamSearchPolicy, nmtSample::MultiplicativeAlignment, nmtSample::SLPEmbedder, nmtSample::SLPProjection, nmtSample::BLEUScoreWriter, nmtSample::Context, nmtSample::LSTMEncoder, nmtSample::TextWriter, nmtSample::SLPAttention, nmtSample::BenchmarkWriter, nmtSample::TextReader, nmtSample::LSTMDecoder, and nmtSample::LimitedSamplesDataReader.