Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
236
size_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
245
size_t QTensor::n_elements() const {
246
size_t numel = 1;
Callers
1
active_bytes
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected