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

Function ggml_sqrt_impl

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

Source from the content-addressed store, hash-verified

2244// ggml_sqrt
2245
2246static struct ggml_tensor * ggml_sqrt_impl(
2247 struct ggml_context * ctx,
2248 struct ggml_tensor * a,
2249 bool inplace) {
2250 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2251
2252 result->op = GGML_OP_SQRT;
2253 result->src[0] = a;
2254
2255 return result;
2256}
2257
2258struct ggml_tensor * ggml_sqrt(
2259 struct ggml_context * ctx,

Callers 2

ggml_sqrtFunction · 0.85
ggml_sqrt_inplaceFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected