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

Method n_elements

src/codec.cpp:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245size_t QTensor::n_elements() const {
246 size_t numel = 1;
247 for (size_t i = 0; i < shape.size(); i++) {
248 if (shape[i] > 0) {
249 numel *= shape[i];
250 }
251 }
252 return numel;
253}
254
255YALMData::YALMData(const std::string& dirname, bool lock_model_weights) {
256 if (from_directory(dirname, lock_model_weights) != 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected