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

Function ggml_pad_ext_circular

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

Source from the content-addressed store, hash-verified

5026// ggml_pad_ext_circular
5027
5028struct ggml_tensor * ggml_pad_ext_circular(
5029 struct ggml_context * ctx,
5030 struct ggml_tensor * a,
5031 int lp0,
5032 int rp0,
5033 int lp1,
5034 int rp1,
5035 int lp2,
5036 int rp2,
5037 int lp3,
5038 int rp3
5039 ) {
5040 struct ggml_tensor * result = ggml_pad_ext(ctx, a, lp0, rp0, lp1, rp1, lp2, rp2, lp3, rp3);
5041 ggml_set_op_params_i32(result, 8, 1); // circular
5042 return result;
5043}
5044
5045// ggml_pad_reflect_1d
5046

Callers 2

build_graphMethod · 0.85
ggml_pad_circularFunction · 0.85

Calls 2

ggml_pad_extFunction · 0.85
ggml_set_op_params_i32Function · 0.85

Tested by 1

build_graphMethod · 0.68