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

Function LoadFromFile

dali/operators/reader/loader/coco_loader.cc:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156template <typename T>
157void LoadFromFile(std::vector<T> &output, const std::string path) {
158 std::ifstream file(path);
159 output.clear();
160 if (!file.good())
161 return;
162
163 unsigned size;
164 Read(file, size, path.c_str());
165 output.resize(size);
166 Read(file, make_span(output), path.c_str());
167}
168
169template <>
170void LoadFromFile(std::vector<RLEMaskPtr> &output, const std::string path) {

Callers 1

Calls 7

make_spanFunction · 0.85
ReadFunction · 0.70
clearMethod · 0.45
c_strMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected