| 1224 | } |
| 1225 | |
| 1226 | int64_t ggml_nelements(const struct ggml_tensor * tensor) { |
| 1227 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1228 | |
| 1229 | return tensor->ne[0]*tensor->ne[1]*tensor->ne[2]*tensor->ne[3]; |
| 1230 | } |
| 1231 | |
| 1232 | int64_t ggml_nrows(const struct ggml_tensor * tensor) { |
| 1233 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls