TODO: move to ggml.h? (won't be able to inline)
| 73 | |
| 74 | // TODO: move to ggml.h? (won't be able to inline) |
| 75 | static bool ggml_are_same_layout(const struct ggml_tensor * a, const struct ggml_tensor * b) { |
| 76 | if (a->type != b->type) { |
| 77 | return false; |
| 78 | } |
| 79 | for (int i = 0; i < GGML_MAX_DIMS; i++) { |
| 80 | if (a->ne[i] != b->ne[i]) { |
| 81 | return false; |
| 82 | } |
| 83 | if (a->nb[i] != b->nb[i]) { |
| 84 | return false; |
| 85 | } |
| 86 | } |
| 87 | return true; |
| 88 | } |
| 89 | |
| 90 | static bool ggml_op_is_empty(enum ggml_op op) { |
| 91 | switch (op) { |
no outgoing calls
no test coverage detected