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

Function removeSingleQuotationMarks

samples/common/sampleOptions.cpp:301–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301std::string removeSingleQuotationMarks(std::string& str)
302{
303 std::vector<std::string> strList{splitToStringVec(str, '\'')};
304 // Remove all the escaped single quotation marks
305 std::string retVal;
306 // Do not really care about unterminated sequences
307 for (size_t i = 0; i < strList.size(); i++)
308 {
309 retVal += strList[i];
310 }
311 return retVal;
312}
313
314void getLayerPrecisions(Arguments& arguments, char const* argument, LayerPrecisions& layerPrecisions)
315{

Callers 5

getLayerPrecisionsFunction · 0.85
getLayerOutputTypesFunction · 0.85
getLayerDeviceTypesFunction · 0.85
getShapesBuildFunction · 0.85
getShapesInferenceFunction · 0.85

Calls 2

splitToStringVecFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected