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

Method get_tensor_meta

smallthinker/src/llama-model-loader.cpp:718–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718struct ggml_tensor * llama_model_loader::get_tensor_meta(const char * name) const {
719 const auto * weight = get_weight(name);
720 if (!weight) {
721 return nullptr;
722 }
723 return weight->tensor;
724}
725
726struct ggml_tensor * llama_model_loader::require_tensor_meta(const std::string & name) const {
727 struct ggml_tensor * tensor = get_tensor_meta(name.c_str());

Callers 1

load_tensorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected