MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / printHelpInfo

Function printHelpInfo

samples/sampleOnnxMNIST/sampleOnnxMNIST.cpp:359–374  ·  view source on GitHub ↗

\brief Prints the help information for running this sample

Source from the content-addressed store, hash-verified

357//! \brief Prints the help information for running this sample
358//!
359void printHelpInfo()
360{
361 std::cout
362 << "Usage: ./sample_onnx_mnist [-h or --help] [-d or --datadir=<path to data directory>] [--useDLACore=<int>]"
363 << std::endl;
364 std::cout << "--help Display help information" << std::endl;
365 std::cout << "--datadir Specify path to a data directory, overriding the default. This option can be used "
366 "multiple times to add multiple directories. If no data directories are given, the default is to use "
367 "(data/samples/mnist/, data/mnist/)"
368 << std::endl;
369 std::cout << "--useDLACore=N Specify a DLA engine for layers that support DLA. Value can range from 0 to n-1, "
370 "where n is the number of DLA engines on the platform."
371 << std::endl;
372 std::cout << "--int8 Run in Int8 mode." << std::endl;
373 std::cout << "--fp16 Run in FP16 mode." << std::endl;
374}
375
376int main(int argc, char** argv)
377{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected