| 44 | return true; |
| 45 | } |
| 46 | |
| 47 | bool is_identity_materialization(const ggml_tensor & node) { |
| 48 | if (node.src[0] == nullptr || !same_type_shape_and_layout(node, *node.src[0])) { |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | switch (node.op) { |
| 53 | case GGML_OP_CONT: |
| 54 | case GGML_OP_DUP: |
| 55 | case GGML_OP_REPEAT: |
| 56 | return true; |
| 57 | default: |
| 58 | return false; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | bool supports_implicit_broadcast_rhs(ggml_op op) { |
no test coverage detected