MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_sin_impl

Function ggml_sin_impl

external/ggml/src/ggml.c:2392–2402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2390 bool inplace) {
2391 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2392
2393 result->op = GGML_OP_SQR;
2394 result->src[0] = a;
2395
2396 return result;
2397}
2398
2399struct ggml_tensor * ggml_sqr(
2400 struct ggml_context * ctx,
2401 struct ggml_tensor * a) {
2402 return ggml_sqr_impl(ctx, a, false);
2403}
2404
2405struct ggml_tensor * ggml_sqr_inplace(

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