MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_neg

Function ggml_neg

ggml.c:3789–3793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3787// ggml_neg
3788
3789struct ggml_tensor * ggml_neg(
3790 struct ggml_context * ctx,
3791 struct ggml_tensor * a) {
3792 return ggml_unary(ctx, a, GGML_UNARY_OP_NEG);
3793}
3794
3795struct ggml_tensor * ggml_neg_inplace(
3796 struct ggml_context * ctx,

Callers 4

ggml_sub_or_setFunction · 0.70
ggml_compute_backwardFunction · 0.70
mainFunction · 0.50
cross_entropy_lossFunction · 0.50

Calls 1

ggml_unaryFunction · 0.70

Tested by 1

mainFunction · 0.40