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

Function ggml_cos_impl

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

Source from the content-addressed store, hash-verified

2346// ggml_cos
2347
2348static struct ggml_tensor * ggml_cos_impl(
2349 struct ggml_context * ctx,
2350 struct ggml_tensor * a,
2351 bool inplace) {
2352 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2353
2354 result->op = GGML_OP_COS;
2355 result->src[0] = a;
2356
2357 return result;
2358}
2359
2360struct ggml_tensor * ggml_cos(
2361 struct ggml_context * ctx,

Callers 2

ggml_cosFunction · 0.85
ggml_cos_inplaceFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected