Functions | |
std::vector< std::string > | splitToStringVec (const std::string &option, char separator) |
template<typename T > | |
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< int > | stringToValue< 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) |
std::vector<std::string> sample::anonymous_namespace{sampleOptions.cpp}::splitToStringVec | ( | const std::string & | option, |
char | separator | ||
) |
T sample::anonymous_namespace{sampleOptions.cpp}::stringToValue | ( | const std::string & | option | ) |
int sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< int > | ( | const std::string & | option | ) |
float sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< float > | ( | const std::string & | option | ) |
bool sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< bool > | ( | const std::string & | option | ) |
std::vector<int> sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< std::vector< int > > | ( | const std::string & | option | ) |
nvinfer1::DataType sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< nvinfer1::DataType > | ( | const std::string & | option | ) |
nvinfer1::TensorFormats sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< nvinfer1::TensorFormats > | ( | const std::string & | option | ) |
IOFormat sample::anonymous_namespace{sampleOptions.cpp}::stringToValue< IOFormat > | ( | const std::string & | option | ) |
std::pair<std::string, T> sample::anonymous_namespace{sampleOptions.cpp}::splitNameAndValue | ( | const std::string & | s | ) |
void sample::anonymous_namespace{sampleOptions.cpp}::splitInsertKeyValue | ( | const std::vector< std::string > & | kvList, |
T & | map | ||
) |
const char* sample::anonymous_namespace{sampleOptions.cpp}::boolToEnabled | ( | bool | enable | ) |
bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseOption | ( | Arguments & | arguments, |
const std::string & | option, | ||
T & | value | ||
) |
bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseNegativeOption | ( | Arguments & | arguments, |
const std::string & | option, | ||
bool & | value | ||
) |
bool sample::anonymous_namespace{sampleOptions.cpp}::checkEraseRepeatedOption | ( | Arguments & | arguments, |
const std::string & | option, | ||
std::vector< T > & | values | ||
) |
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 | ||
) |
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 | ||
) |
std::string sample::anonymous_namespace{sampleOptions.cpp}::removeSingleQuotationMarks | ( | std::string & | str | ) |
bool sample::anonymous_namespace{sampleOptions.cpp}::getShapesBuild | ( | Arguments & | arguments, |
std::unordered_map< std::string, ShapeRange > & | shapes, | ||
const char * | argument, | ||
nvinfer1::OptProfileSelector | selector | ||
) |
bool sample::anonymous_namespace{sampleOptions.cpp}::getShapesInference | ( | Arguments & | arguments, |
std::unordered_map< std::string, std::vector< int >> & | shapes, | ||
const char * | argument | ||
) |
void sample::anonymous_namespace{sampleOptions.cpp}::processShapes | ( | std::unordered_map< std::string, ShapeRange > & | shapes, |
bool | minShapes, | ||
bool | optShapes, | ||
bool | maxShapes, | ||
bool | calib | ||
) |
void sample::anonymous_namespace{sampleOptions.cpp}::printShapes | ( | std::ostream & | os, |
const char * | phase, | ||
const T & | shapes | ||
) |
std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printBatch | ( | std::ostream & | os, |
int | maxBatch | ||
) |
std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printTacticSources | ( | std::ostream & | os, |
nvinfer1::TacticSources | enabledSources, | ||
nvinfer1::TacticSources | disabledSources | ||
) |
std::ostream& sample::anonymous_namespace{sampleOptions.cpp}::printPrecision | ( | std::ostream & | os, |
const BuildOptions & | options | ||
) |