MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / VectorReader

Method VectorReader

src/batch_reader.cc:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 }
104
105 VectorReader::VectorReader(std::vector<std::vector<std::string>> examples)
106 {
107 _examples.reserve(examples.size());
108 for (auto& example : examples)
109 _examples.emplace_back(std::move(example));
110 }
111
112 VectorReader::VectorReader(std::vector<Example> examples)
113 : _examples(std::move(examples))

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected