MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle-Lite / LoadParamNaive

Function LoadParamNaive

lite/model_parser/model_parser.cc:597–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void LoadParamNaive(const std::string &path,
598 lite::Scope *scope,
599 const std::string &name) {
600 // Load param
601 naive_buffer::BinaryTable table;
602 table.LoadFromFile(path);
603 naive_buffer::proto::ParamDesc pt_desc(&table);
604 pt_desc.Load();
605 naive_buffer::ParamDesc desc(&pt_desc);
606 GetParamInfoNaive(desc, scope, name);
607}
608
609void LoadCombinedParamsNaive(const std::string &path,
610 const uint64_t &offset,

Callers 2

TESTFunction · 0.85
LoadModelNaiveFunction · 0.85

Calls 3

GetParamInfoNaiveFunction · 0.85
LoadFromFileMethod · 0.80
LoadMethod · 0.60

Tested by 1

TESTFunction · 0.68