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

Method ModelMemoryReader

src/models/model_reader.cc:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54 ModelMemoryReader::ModelMemoryReader(std::string model_name)
55 : _model_name(std::move(model_name))
56 {
57 }
58
59 void ModelMemoryReader::register_file(std::string filename, std::string content) {
60 _files.emplace(std::move(filename), std::move(content));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected