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

Function ggml_dup_impl

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

Source from the content-addressed store, hash-verified

1927// ggml_dup
1928
1929static struct ggml_tensor * ggml_dup_impl(
1930 struct ggml_context * ctx,
1931 struct ggml_tensor * a,
1932 bool inplace) {
1933 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
1934
1935 result->op = GGML_OP_DUP;
1936 result->src[0] = a;
1937
1938 return result;
1939}
1940
1941struct ggml_tensor * ggml_dup(
1942 struct ggml_context * ctx,

Callers 2

ggml_dupFunction · 0.85
ggml_dup_inplaceFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected