| 2465 | // ggml_repeat |
| 2466 | |
| 2467 | struct ggml_tensor * ggml_repeat( |
| 2468 | struct ggml_context * ctx, |
| 2469 | struct ggml_tensor * a, |
| 2470 | struct ggml_tensor * b) { |
| 2471 | GGML_ASSERT(ggml_can_repeat(a, b)); |
| 2472 | |
| 2473 | struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, GGML_MAX_DIMS, b->ne); |
| 2474 | |
| 2475 | result->op = GGML_OP_REPEAT; |
| 2476 | result->src[0] = a; |
| 2477 | |
| 2478 | return result; |
| 2479 | } |
| 2480 | |
| 2481 | struct ggml_tensor * ggml_repeat_4d( |
| 2482 | struct ggml_context * ctx, |