TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nmtSample::DataReader Class Referenceabstract

reader of sequences of data More...

Inheritance diagram for nmtSample::DataReader:
Collaboration diagram for nmtSample::DataReader:

Public Types

typedef std::shared_ptr< DataReaderptr
 

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...
 

Detailed Description

reader of sequences of data

Member Typedef Documentation

◆ ptr

typedef std::shared_ptr<DataReader> nmtSample::DataReader::ptr

Constructor & Destructor Documentation

◆ DataReader()

nmtSample::DataReader::DataReader ( )
default

◆ ~DataReader()

nmtSample::DataReader::~DataReader ( )
overridedefault

Member Function Documentation

◆ read()

virtual int nmtSample::DataReader::read ( int  samplesToRead,
int  maxInputSequenceLength,
int hInputData,
int hActualInputSequenceLengths 
)
pure virtual

reads the batch of smaples/sequences

Returns
the actual number of samples read

Implemented in nmtSample::TextReader, and nmtSample::LimitedSamplesDataReader.

◆ reset()

virtual void nmtSample::DataReader::reset ( )
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.

◆ getInfo()


The documentation for this class was generated from the following file: