| 1942 | } |
| 1943 | |
| 1944 | int64_t ggml_nelements(const struct ggml_tensor * tensor) { |
| 1945 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1946 | |
| 1947 | return tensor->ne[0]*tensor->ne[1]*tensor->ne[2]*tensor->ne[3]; |
| 1948 | } |
| 1949 | |
| 1950 | int64_t ggml_nrows(const struct ggml_tensor * tensor) { |
| 1951 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls