Home
last modified time | relevance | path

Searched refs:mmap_handle (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/common/
Dmmap.cc119 bool Unmap(MmapHandle mmap_handle) { in Unmap() argument
120 if (!mmap_handle.ok()) { in Unmap()
124 if (munmap(mmap_handle.start(), mmap_handle.num_bytes()) != 0) { in Unmap()
Dmmap.h93 bool Unmap(MmapHandle mmap_handle);
/external/libtextclassifier/lang_id/
Dlang-id.cc89 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl() local
90 if (!mmap_handle.ok()) { in LangIdImpl()
95 Initialize(mmap_handle.to_stringpiece()); in LangIdImpl()
101 MmapHandle mmap_handle = scoped_mmap.handle(); in LangIdImpl() local
102 if (!mmap_handle.ok()) { in LangIdImpl()
107 Initialize(mmap_handle.to_stringpiece()); in LangIdImpl()
/external/libtextclassifier/smartselect/
Dtext-classification-model.cc154 void ParseMergedModel(const MmapHandle& mmap_handle, in ParseMergedModel() argument
158 const char* model_data = reinterpret_cast<const char*>(mmap_handle.start()); in ParseMergedModel()
173 bool TextClassificationModel::LoadModels(const MmapHandle& mmap_handle) { in LoadModels() argument
174 if (!mmap_handle.ok()) { in LoadModels()
180 ParseMergedModel(mmap_handle, &selection_model, &selection_model_length, in LoadModels()
Dtext-classification-model.h93 bool LoadModels(const nlp_core::MmapHandle& mmap_handle);