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

Function ggml_sin_impl

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

Source from the content-addressed store, hash-verified

2320// ggml_sin
2321
2322static struct ggml_tensor * ggml_sin_impl(
2323 struct ggml_context * ctx,
2324 struct ggml_tensor * a,
2325 bool inplace) {
2326 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2327
2328 result->op = GGML_OP_SIN;
2329 result->src[0] = a;
2330
2331 return result;
2332}
2333
2334struct ggml_tensor * ggml_sin(
2335 struct ggml_context * ctx,

Callers 2

ggml_sinFunction · 0.85
ggml_sin_inplaceFunction · 0.85

Calls 2

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected