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

Method parse

samples/common/sampleOptions.cpp:701–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void BaseModelOptions::parse(Arguments& arguments)
702{
703 if (getAndDelOption(arguments, "--onnx", model))
704 {
705 format = ModelFormat::kONNX;
706 }
707 else if (getAndDelOption(arguments, "--uff", model))
708 {
709 format = ModelFormat::kUFF;
710 }
711 else if (getAndDelOption(arguments, "--model", model))
712 {
713 format = ModelFormat::kCAFFE;
714 }
715}
716
717void UffInput::parse(Arguments& arguments)
718{

Callers 12

create_networkMethod · 0.45
build_engineFunction · 0.45
build_engineFunction · 0.45
build_engine_onnxFunction · 0.45
build_engineFunction · 0.45
create_networkMethod · 0.45
create_networkMethod · 0.45
create_networkMethod · 0.45
modelToNetworkFunction · 0.45
mainFunction · 0.45
build_engineFunction · 0.45
convert_onnx_to_engineFunction · 0.45

Calls 15

getAndDelOptionFunction · 0.85
getAndDelRepeatedOptionFunction · 0.85
splitToStringVecFunction · 0.85
getShapesBuildFunction · 0.85
processShapesFunction · 0.85
getAndDelNegOptionFunction · 0.85
getLayerPrecisionsFunction · 0.85
getLayerOutputTypesFunction · 0.85
getLayerDeviceTypesFunction · 0.85
toLowerFunction · 0.85
getTempfileControlsFunction · 0.85
splitInsertKeyValueFunction · 0.85

Tested by

no test coverage detected