MCPcopy Create free account
hub / github.com/cyrusbehr/tensorrt-cpp-api / showHelp

Function showHelp

src/cmd_line_parser.h:10–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8};
9
10inline void showHelp(char *argv[]) {
11 std::cout << "Usage: " << argv[0] << " [OPTIONS]" << std::endl << std::endl;
12
13 std::cout << "Options:" << std::endl;
14 std::cout << "--onnx_model <string> Path to the ONNX model. "
15 "(Either onnx_model or trt_model must be provided)"
16 << std::endl;
17 std::cout << "--trt_model <string> Path to the TensorRT model. "
18 "(Either onnx_model or trt_model must be provided)"
19 << std::endl;
20
21 std::cout << "Example usage:" << std::endl;
22 std::cout << argv[0] << " --onnx_model model.onnx" << std::endl;
23};
24
25inline bool tryGetNextArgument(int argc, char *argv[], int &currentIndex, std::string &value, std::string flag, bool printErrors = true) {
26 if (currentIndex + 1 >= argc) {

Callers 1

parseArgumentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected