mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-06-28 04:30:15 -05:00
Fix ggml_nbytes (#1798)
This commit is contained in:
parent
397150caa2
commit
6b221f0c1f
@ -4738,7 +4738,7 @@ GGML_CALL size_t ggml_nbytes(const struct ggml_tensor * tensor) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
nbytes = tensor->nb[1]; //tensor->ne[0]*tensor->nb[0]/blck_size;
|
||||
nbytes = ggml_row_size(tensor->type, tensor->ne[0]);
|
||||
for (int i = 1; i < GGML_MAX_DIMS; ++i) {
|
||||
nbytes += (tensor->ne[i] - 1)*tensor->nb[i];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user