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

Function ggml_repeat_back

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

Source from the content-addressed store, hash-verified

2501// ggml_repeat_back
2502
2503struct 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

Callers 3

build_graphMethod · 0.85
ggml_compute_backwardFunction · 0.85
ggml_vk_check_results_0Function · 0.85

Calls 2

ggml_can_repeatFunction · 0.85
ggml_new_tensorFunction · 0.85

Tested by 1

build_graphMethod · 0.68