The SampleReformatFreeIO class implements the reformat free I/O sample.
More...
The SampleReformatFreeIO class implements the reformat free I/O sample.
It creates the network using a single conv layer
◆ SampleUniquePtr
◆ SampleReformatFreeIO()
◆ build()
bool SampleReformatFreeIO::build |
( |
int |
dataWidth | ) |
|
Builds the network engine.
Creates the network, configures the builder and creates the network engine.
This function creates the single layer network by manual insertion and builds the engine
- Returns
- Returns true if the engine was created successfully and false otherwise
◆ infer()
Runs the TensorRT inference engine for this sample.
This function is the main execution function of the sample. It allocates the buffer, sets inputs, executes the engine, and verifies the output.
◆ teardown()
bool SampleReformatFreeIO::teardown |
( |
| ) |
|
Used to clean up any state created in the sample class.
Clean up the libprotobuf files as the parsing is complete
- Note
- It is not safe to use any other part of the protocol buffers library after ShutdownProtobufLibrary() has been called.
◆ reference()
bool SampleReformatFreeIO::reference |
( |
| ) |
|
Used to run CPU reference and get result.
◆ compareResult()
void SampleReformatFreeIO::compareResult |
( |
| ) |
|
Used to compare the CPU reference with the TRT result.
◆ readDigits()
bool SampleReformatFreeIO::readDigits |
( |
SampleBuffer & |
buffer, |
|
|
int |
groundTruthDigit |
|
) |
| |
Reads the digit map from the file.
Reads the digit map from file.
◆ verifyOutput()
template<typename T >
bool SampleReformatFreeIO::verifyOutput |
( |
SampleBuffer & |
outputBuf, |
|
|
int |
groundTruthDigit |
|
) |
| const |
Verifies that the output is correct and prints it.
◆ constructNetwork()
uses a Caffe parser to create the single layer Network and marks the output layers
Uses a caffe parser to create the single layer Network and marks the output layers.
◆ mEngine
The TensorRT engine used to run the network.
◆ mParams
◆ mInputDims
The dimensions of the input to the network.
◆ mOutputDims
The dimensions of the output to the network.
◆ mTensorFormat
TensorFormat SampleReformatFreeIO::mTensorFormat {TensorFormat::kLINEAR} |
◆ mMeanBlob
◆ mDigit
int SampleReformatFreeIO::mDigit |
The documentation for this class was generated from the following file: