| 1977 | } |
| 1978 | |
| 1979 | size_t ggml_nbytes_split(const struct ggml_tensor * tensor, int nrows_split) { |
| 1980 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 1981 | |
| 1982 | return (nrows_split*tensor->ne[0]*ggml_type_size(tensor->type))/ggml_blck_size(tensor->type); |
| 1983 | } |
| 1984 | |
| 1985 | int ggml_blck_size(enum ggml_type type) { |
| 1986 | return type_traits[type].blck_size; |
nothing calls this directly
no test coverage detected