| 188 | } |
| 189 | |
| 190 | void assert_shape_2d(struct ggml_tensor * tensor, int64_t ne0, int64_t ne1) { |
| 191 | GGML_ASSERT(tensor->n_dims == 2); |
| 192 | GGML_ASSERT(tensor->ne[0] == ne0); |
| 193 | GGML_ASSERT(tensor->ne[1] == ne1); |
| 194 | } |
| 195 | |
| 196 | void assert_shape_3d(struct ggml_tensor * tensor, int64_t ne0, int64_t ne1, int64_t ne2) { |
| 197 | GGML_ASSERT(tensor->n_dims == 3); |
no outgoing calls
no test coverage detected