| 2501 | // ggml_repeat_back |
| 2502 | |
| 2503 | struct ggml_tensor * ggml_repeat_back( |
| 2504 | struct ggml_context * ctx, |
| 2505 | struct ggml_tensor * a, |
| 2506 | struct ggml_tensor * b) { |
| 2507 | GGML_ASSERT(ggml_can_repeat(b, a)); |
| 2508 | |
| 2509 | struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, GGML_MAX_DIMS, b->ne); |
| 2510 | |
| 2511 | result->op = GGML_OP_REPEAT_BACK; |
| 2512 | result->src[0] = a; |
| 2513 | |
| 2514 | return result; |
| 2515 | } |
| 2516 | |
| 2517 | // ggml_concat |
| 2518 |