MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / get_tensor

Function get_tensor

src/model.cpp:138–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136};
137
138const Tensor* get_tensor(const YALMData& yalm, const std::string& key) {
139 auto it = yalm.tensors.find(key);
140 if (it == yalm.tensors.end()) {
141 std::cerr << "FATAL: missing tensor: " << key << std::endl;
142 assert(false);
143 return nullptr;
144 }
145 const Tensor& tensor = it->second;
146 return &tensor;
147};
148
149Block::Block(
150 int layer_i,

Callers 1

ModelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected