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

Function splitToStringVec

samples/common/sampleUtils.cpp:101–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101std::vector<std::string> splitToStringVec(std::string const& s, char separator)
102{
103 std::vector<std::string> splitted;
104
105 for (size_t start = 0; start < s.length();)
106 {
107 size_t separatorIndex = s.find(separator, start);
108 if (separatorIndex == std::string::npos)
109 {
110 separatorIndex = s.length();
111 }
112 splitted.emplace_back(s.substr(start, separatorIndex - start));
113 start = separatorIndex + 1;
114 }
115
116 return splitted;
117}
118
119bool broadcastIOFormats(std::vector<IOFormat> const& formats, size_t nbBindings, bool isInput /*= true*/)
120{

Callers 11

vector<int32_t>>Method · 0.85
TensorFormats>Method · 0.85
splitNameAndValueFunction · 0.85
getLayerPrecisionsFunction · 0.85
getLayerOutputTypesFunction · 0.85
getLayerDeviceTypesFunction · 0.85
getShapesBuildFunction · 0.85
getShapesInferenceFunction · 0.85
parseMethod · 0.85
getTempfileControlsFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected