MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_cont_4d

Function ggml_cont_4d

subprojects/llama.cpp/ggml/src/ggml.c:3495–3511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3493}
3494
3495struct 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

Callers 15

buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
ggml_cont_1dFunction · 0.85

Calls 3

ggml_nelementsFunction · 0.85
ggml_new_tensor_4dFunction · 0.85
ggml_format_nameFunction · 0.85

Tested by

no test coverage detected