| 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); |
| 198 | GGML_ASSERT(tensor->ne[0] == ne0); |
| 199 | GGML_ASSERT(tensor->ne[1] == ne1); |
| 200 | GGML_ASSERT(tensor->ne[2] == ne2); |
| 201 | } |
| 202 | |
| 203 | void assert_shape_4d(struct ggml_tensor * tensor, int64_t ne0, int64_t ne1, int64_t ne2, int64_t ne3) { |
| 204 | GGML_ASSERT(tensor->n_dims == 4); |
no outgoing calls
no test coverage detected