| 3493 | } |
| 3494 | |
| 3495 | struct ggml_tensor * ggml_cont_4d( |
| 3496 | struct ggml_context * ctx, |
| 3497 | struct ggml_tensor * a, |
| 3498 | int64_t ne0, |
| 3499 | int64_t ne1, |
| 3500 | int64_t ne2, |
| 3501 | int64_t ne3) { |
| 3502 | GGML_ASSERT(ggml_nelements(a) == (ne0*ne1*ne2*ne3)); |
| 3503 | |
| 3504 | struct ggml_tensor * result = ggml_new_tensor_4d(ctx, a->type, ne0, ne1, ne2, ne3); |
| 3505 | ggml_format_name(result, "%s (cont)", a->name); |
| 3506 | |
| 3507 | result->op = GGML_OP_CONT; |
| 3508 | result->src[0] = a; |
| 3509 | |
| 3510 | return result; |
| 3511 | } |
| 3512 | |
| 3513 | // ggml_reshape |
| 3514 |
no test coverage detected