Home
last modified time | relevance | path

Searched defs:model_buf (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mindspore/mindspore-src/source/mindspore/lite/examples/runtime_cpp/
Dmain.cc249 mindspore::Model *CreateAndBuildModel(char *model_buf, size_t model_size) { in CreateAndBuildModel()
281 mindspore::Model *CreateAndBuildModelComplicated(char *model_buf, size_t size) { in CreateAndBuildModelComplicated()
333 char *model_buf = ReadFile(model_path, &size); in Run() local
377 char *model_buf = ReadFile(model_path, &size); in RunResize() local
429 char *model_buf = ReadFile(model_path, &size); in RunCreateModelComplicated() local
473 char *model_buf = ReadFile(model_path, &size); in RunModelParallel() local
541 char *model_buf = ReadFile(model_path, &size); in RunWithSharedMemoryPool() local
648 char *model_buf = ReadFile(model_path, &size); in RunCallback() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/litert/
Dcache_session.cc182 int CacheSession::ParseInputOutputFromModelBuffer(const char *model_buf, LiteModel *model) { in ParseInputOutputFromModelBuffer()
200 auto model_buf = LoadModelByPath(model_path, model_type, &model_size, use_mmap); in LoadModelAndCompileByPath() local
240 Model *CacheSession::ImportInOutFromBuffer(const char *model_buf, size_t size, bool take_buf, minds… in ImportInOutFromBuffer()
402 char *model_buf; in LoadModelByPath() local
Druntime_convert.cc24 char *RuntimeConvert(const char *model_buf, const size_t &buf_size, size_t *size, mindspore::Contex… in RuntimeConvert()
122 void *model_buf = nullptr; in RuntimeConvert() local
Dpack_weight.cc20 STATUS PackWeight::InitPackWeight(const void *model_buf, size_t model_size, std::string id, int num… in InitPackWeight()
81 STATUS PackWeight::StoreOriginTensorData(const void *model_buf, const void *origin_tensor_data) { in StoreOriginTensorData()
136 STATUS PackWeight::ReplaceOriginTensorData(const void *model_buf, std::vector<Tensor *> *tensors, i… in ReplaceOriginTensorData()
254 void *model_buf = shared_bufs_[id][numa_id]; in FreePackWeight() local
Dlite_model.cc450 int InitModelBuffer(LiteModel *model, const char *model_buf, size_t size, bool take_buf) { in InitModelBuffer()
476 int LiteModel::ConstructModel(const char *model_buf, size_t size, bool take_buf,
607 Model *ImportFromBuffer(const char *model_buf, size_t size, bool take_buf, mindspore::ModelType mod…
668 Model *Model::Import(const char *model_buf, size_t size) { return ImportFromBuffer(model_buf, size,…
Dpack_weight_manager.cc104 const char *model_buf, size_t model_size, std::string *model_id, std::string *runner_id, in InitPackWeightManager()
129 char *PackWeightManager::GetSharedModelBuf(const char *model_buf, std::string model_id, in GetSharedModelBuf()
Dlite_session.cc1871 lite::LiteSession *lite::LiteSession::CreateSession(const char *model_buf, size_t size, in CreateSession()
1888 mindspore::ModelType lite::LiteSession::LoadModelByBuff(const char *model_buf, const size_t &buf_si… in LoadModelByBuff()
1925 char *model_buf; in LoadModelByPath() local
2051 int lite::LiteSession::LoadModelAndCompileByBuf(const char *model_buf, mindspore::ModelType model_t… in LoadModelAndCompileByBuf()
2102 auto model_buf = LoadModelByPath(model_path, model_type, &model_size, use_mmap); in LoadModelAndCompileByBuf() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/mindir_loader/
Dmodel_loader.cc22 int ModelLoader::InitModelBuffer(AbstractBaseModel *model, const char *model_buf, size_t size, bool… in InitModelBuffer()
/third_party/mindspore/mindspore-src/source/mindspore/lite/tools/converter/micro/coder/
Dcoder.cc160 auto model_buf = lite::ReadFile(model_file.c_str(), &buffer_size); in MicroSourceCodeGeneration() local
178 int Coder::ExecuteMicroGeneration(const void *model_buf, size_t size, const std::string &output_pat… in ExecuteMicroGeneration()
/third_party/mindspore/mindspore-src/source/mindspore/lite/providers/nnie/src/
Dnnie_manager.h33 static NNIEManager *GetInstance(const void *model_buf) { in GetInstance()
Dcustom_fp32.cc172 auto model_buf = static_cast<const void *>(inputs[inputs.size() - 1].Data().get()); in CustomCreateKernel() local
Dnnie_manager.cc206 int NNIEManager::Init(char *model_buf, int size, const std::vector<mindspore::MSTensor> &inputs) { in Init()
Dnnie_common.cc361 int NnieLoadModel(char *model_buf, int size, NnieModel *nnie_model) { in NnieLoadModel()
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/cxx_api/model_pool/
Dmodel_worker.cc45 void ModelWorker::InitModelWorker(const char *model_buf, size_t size, in InitModelWorker()
112 Status ModelWorker::Init(const char *model_buf, size_t size, ModelType model_type) { in Init()
Dresource_manager.cc251 void InitWorkerThread::Launch(std::shared_ptr<ModelWorker> worker, const char *model_buf, size_t si… in Launch()
273 void InitWorkerManager::InitModelWorker(std::shared_ptr<ModelWorker> worker, const char *model_buf,… in InitModelWorker()
/third_party/mindspore/mindspore-src/source/mindspore/lite/examples/quick_start_cpp/
Dmain.cc123 char *model_buf = ReadFile(model_path.c_str(), &size); in QuickStart() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/examples/runtime_gpu_extend/
Dmain.cc140 char *model_buf = ReadFile(model_path.c_str(), &size); in CompileAndRun() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/cxx_api/model/
Dmodel.cc54 Status DecryptModel(const std::string &cropto_lib_path, const void *model_buf, size_t model_size, c… in DecryptModel()
118 auto model_buf = lite::ReadFile(CharToString(model_path).c_str(), &model_size); in Build() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/litert/cxx_api/
Dserialization.cc116 auto model_buf = session.LoadModelByPath(filename, model_type, &model_size, false); in Load() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/common/
Dfile_utils.cc188 char *model_buf = nullptr; in ReadFile() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/litert/cxx_api/model/
Dmodel.cc52 Status DecryptModel(const std::string &cropto_lib_path, const void *model_buf, size_t model_size, c… in DecryptModel()
185 auto model_buf = lite::ReadFile(CharToString(model_path).c_str(), &model_size); in Build() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/mindir_loader/mindir_model/
Dmindir_model_loader.cc28 AbstractBaseModel *MindirModelLoader::ImportModel(const char *model_buf, size_t size, bool take_buf… in ImportModel()
/third_party/mindspore/mindspore-src/source/mindspore/lite/src/extendrt/delegate/graph_executor/litert/
Dfunc_graph_reuse_manager.cc87 Status FuncGraphReuseManager::StoreFbModelBuf(void *model_buf, size_t data_size, in StoreFbModelBuf()
/third_party/mindspore/mindspore-src/source/mindspore/lite/test/ut/src/api/
Dmodel_parallel_runner_test.cc212 auto model_buf = lite::ReadFile(model_path, &size); in TEST_F() local
/third_party/mindspore/mindspore-src/source/mindspore/lite/tools/common/
Dgraph_util.cc683 int TransferMetaGraph(const schema::MetaGraphT &graph, void **model_buf, size_t *size) { in TransferMetaGraph()

12