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

Function ggml_repeat

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

Source from the content-addressed store, hash-verified

2465// ggml_repeat
2466
2467struct 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
2481struct ggml_tensor * ggml_repeat_4d(
2482 struct ggml_context * ctx,

Callers 10

llm_build_deepseek2Method · 0.85
llm_build_minicpm3Method · 0.85
llm_build_plmMethod · 0.85
build_rwkv6_time_mixMethod · 0.85
build_rwkv7_time_mixMethod · 0.85
build_graphMethod · 0.85
ggml_add1_or_setFunction · 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