TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
sample::anonymous_namespace{sampleOptions.cpp} Namespace Reference

Functions

std::vector< std::string > splitToStringVec (const std::string &option, char separator)
 
template<typename T >
stringToValue (const std::string &option)
 
template<>
int stringToValue< int > (const std::string &option)
 
template<>
float stringToValue< float > (const std::string &option)
 
template<>
bool stringToValue< bool > (const std::string &option)
 
template<>
std::vector< intstringToValue< std::vector< int > > (const std::string &option)
 
template<>
nvinfer1::DataType stringToValue< nvinfer1::DataType > (const std::string &option)
 
template<>
nvinfer1::TensorFormats stringToValue< nvinfer1::TensorFormats > (const std::string &option)
 
template<>
IOFormat stringToValue< IOFormat > (const std::string &option)
 
template<typename T >
std::pair< std::string, T > splitNameAndValue (const std::string &s)
 
template<typename T >
void splitInsertKeyValue (const std::vector< std::string > &kvList, T &map)
 
const char * boolToEnabled (bool enable)
 
template<typename T >
bool checkEraseOption (Arguments &arguments, const std::string &option, T &value)
 
bool checkEraseNegativeOption (Arguments &arguments, const std::string &option, bool &value)
 
template<typename T >
bool checkEraseRepeatedOption (Arguments &arguments, const std::string &option, std::vector< T > &values)
 
void insertShapesBuild (std::unordered_map< std::string, ShapeRange > &shapes, nvinfer1::OptProfileSelector selector, const std::string &name, const std::vector< int > &dims)
 
void insertShapesInference (std::unordered_map< std::string, std::vector< int >> &shapes, const std::string &name, const std::vector< int > &dims)
 
std::string removeSingleQuotationMarks (std::string &str)
 
bool getShapesBuild (Arguments &arguments, std::unordered_map< std::string, ShapeRange > &shapes, const char *argument, nvinfer1::OptProfileSelector selector)
 
bool getShapesInference (Arguments &arguments, std::unordered_map< std::string, std::vector< int >> &shapes, const char *argument)
 
void processShapes (std::unordered_map< std::string, ShapeRange > &shapes, bool minShapes, bool optShapes, bool maxShapes, bool calib)
 
template<typename T >
void printShapes (std::ostream &os, const char *phase, const T &shapes)
 
std::ostream & printBatch (std::ostream &os, int maxBatch)
 
std::ostream & printTacticSources (std::ostream &os, nvinfer1::TacticSources enabledSources, nvinfer1::TacticSources disabledSources)
 
std::ostream & printPrecision (std::ostream &os, const BuildOptions &options)
 

Function Documentation

◆ splitToStringVec()

std::vector<std::string> sample::anonymous_namespace{sampleOptions.cpp}::splitToStringVec ( const std::string &  option,
char  separator 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringToValue()

template<typename T >
T sample::anonymous_namespace{sampleOptions.cpp}::stringToValue ( const std::string &  option)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stringToValue< int >()

template<>
int sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< int > ( const std::string &  option)

◆ stringToValue< float >()

template<>
float sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< float > ( const std::string &  option)

◆ stringToValue< bool >()

template<>
bool sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< bool > ( const std::string &  option)

◆ stringToValue< std::vector< int > >()

template<>
std::vector<int> sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< std::vector< int > > ( const std::string &  option)
Here is the call graph for this function:

◆ stringToValue< nvinfer1::DataType >()

template<>
nvinfer1::DataType sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< nvinfer1::DataType > ( const std::string &  option)

◆ stringToValue< nvinfer1::TensorFormats >()

template<>
nvinfer1::TensorFormats sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< nvinfer1::TensorFormats > ( const std::string &  option)
Here is the call graph for this function:

◆ stringToValue< IOFormat >()

template<>
IOFormat sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< IOFormat > ( const std::string &  option)

◆ splitNameAndValue()

template<typename T >
std::pair<std::string, T> sample::anonymous_namespace{sampleOptions.cpp}::splitNameAndValue ( const std::string &  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ splitInsertKeyValue()

template<typename T >
void sample::anonymous_namespace{sampleOptions.cpp}::splitInsertKeyValue ( const std::vector< std::string > &  kvList,
T &  map 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ boolToEnabled()

const char* sample::anonymous_namespace{sampleOptions.cpp}::boolToEnabled ( bool  enable)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkEraseOption()

template<typename T >
bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseOption ( Arguments arguments,
const std::string &  option,
T &  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkEraseNegativeOption()

bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseNegativeOption ( Arguments arguments,
const std::string &  option,
bool &  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkEraseRepeatedOption()

template<typename T >
bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseRepeatedOption ( Arguments arguments,
const std::string &  option,
std::vector< T > &  values 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ insertShapesBuild()

void sample::anonymous_namespace{sampleOptions.cpp}::insertShapesBuild ( std::unordered_map< std::string, ShapeRange > &  shapes,
nvinfer1::OptProfileSelector  selector,
const std::string &  name,
const std::vector< int > &  dims 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ insertShapesInference()

void sample::anonymous_namespace{sampleOptions.cpp}::insertShapesInference ( std::unordered_map< std::string, std::vector< int >> &  shapes,
const std::string &  name,
const std::vector< int > &  dims 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeSingleQuotationMarks()

std::string sample::anonymous_namespace{sampleOptions.cpp}::removeSingleQuotationMarks ( std::string &  str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShapesBuild()

bool sample::anonymous_namespace{sampleOptions.cpp}::getShapesBuild ( Arguments arguments,
std::unordered_map< std::string, ShapeRange > &  shapes,
const char *  argument,
nvinfer1::OptProfileSelector  selector 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getShapesInference()

bool sample::anonymous_namespace{sampleOptions.cpp}::getShapesInference ( Arguments arguments,
std::unordered_map< std::string, std::vector< int >> &  shapes,
const char *  argument 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processShapes()

void sample::anonymous_namespace{sampleOptions.cpp}::processShapes ( std::unordered_map< std::string, ShapeRange > &  shapes,
bool  minShapes,
bool  optShapes,
bool  maxShapes,
bool  calib 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printShapes()

template<typename T >
void sample::anonymous_namespace{sampleOptions.cpp}::printShapes ( std::ostream &  os,
const char *  phase,
const T &  shapes 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printBatch()

std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printBatch ( std::ostream &  os,
int  maxBatch 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printTacticSources()

std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printTacticSources ( std::ostream &  os,
nvinfer1::TacticSources  enabledSources,
nvinfer1::TacticSources  disabledSources 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printPrecision()

std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printPrecision ( std::ostream &  os,
const BuildOptions options 
)
Here is the call graph for this function:
Here is the caller graph for this function: