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

Function ggml_log_impl

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

Source from the content-addressed store, hash-verified

2270// ggml_log
2271
2272static struct ggml_tensor * ggml_log_impl(
2273 struct ggml_context * ctx,
2274 struct ggml_tensor * a,
2275 bool inplace) {
2276 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2277
2278 result->op = GGML_OP_LOG;
2279 result->src[0] = a;
2280
2281 return result;
2282}
2283
2284struct ggml_tensor * ggml_log(
2285 struct ggml_context * ctx,

Callers 2

ggml_logFunction · 0.85
ggml_log_inplaceFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected