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

Method ndim

src/codec.cpp:236–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236size_t QTensor::ndim() const {
237 for (size_t i = 0; i < shape.size(); i++) {
238 if (shape[i] == 0) {
239 return i;
240 }
241 }
242 return shape.size();
243}
244
245size_t QTensor::n_elements() const {
246 size_t numel = 1;

Callers 1

active_bytesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected