MCPcopy Create free account
hub / github.com/NVIDIA/DALI / ParseIndexVersion

Function ParseIndexVersion

dali/operators/reader/loader/webdataset_loader.cc:106–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106inline int ParseIndexVersion(const string& version_str) {
107 const char *s = version_str.c_str();
108 assert(*s == 'v');
109 s++;
110 int major = atoi(s);
111 s = strchr(s, '.');
112 assert(s);
113 s++;
114 int minor = atoi(s);
115 return MakeVersionNumber(major, minor);
116}
117
118inline void ParseIndexFile(std::vector<SampleDesc>& samples_container,
119 std::vector<ComponentDesc>& components_container,

Callers 1

ParseIndexFileFunction · 0.85

Calls 2

MakeVersionNumberFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected