| 2092 | } |
| 2093 | |
| 2094 | static inline bool ggml_is_contiguous_except_dim_1(const struct ggml_tensor * tensor) { |
| 2095 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 2096 | |
| 2097 | return |
| 2098 | tensor->nb[0] == ggml_type_size(tensor->type) && |
| 2099 | tensor->nb[2] == tensor->nb[1]*tensor->ne[1] && |
| 2100 | tensor->nb[3] == tensor->nb[2]*tensor->ne[2]; |
| 2101 | } |
| 2102 | |
| 2103 | bool ggml_is_permuted(const struct ggml_tensor * tensor) { |
| 2104 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no test coverage detected