| 2011 | } |
| 2012 | |
| 2013 | size_t ggml_element_size(const struct ggml_tensor * tensor) { |
| 2014 | return ggml_type_size(tensor->type); |
| 2015 | } |
| 2016 | |
| 2017 | static inline bool ggml_is_scalar(const struct ggml_tensor * tensor) { |
| 2018 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |