MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / get_tensor

Method get_tensor

smallthinker/tools/export-lora/export-lora.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 ggml_tensor * get_tensor(std::string name) {
88 if (tensors.find(name) == tensors.end()) {
89 return nullptr;
90 }
91 return tensors[name];
92 }
93
94 void read_tensor_data(std::string name, std::vector<uint8_t> & buf) {
95 if (tensors.find(name) == tensors.end()) {

Callers 3

run_mergeMethod · 0.45
merge_tensorMethod · 0.45
load_modelFunction · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected