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

Class ModelFileReader

include/ctranslate2/models/model_reader.h:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 };
28
29 class ModelFileReader : public ModelReader {
30 public:
31 ModelFileReader(std::string model_dir);
32 std::string get_model_id() const override;
33 std::unique_ptr<std::istream> get_file(const std::string& filename,
34 const bool binary = false) override;
35
36 private:
37 std::string _model_dir;
38 };
39
40 class ModelMemoryReader : public ModelReader {
41 public:

Callers 1

contains_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected