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

Function ggml_diag_mask_inf_impl

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

Source from the content-addressed store, hash-verified

3869// ggml_diag_mask_inf
3870
3871static struct ggml_tensor * ggml_diag_mask_inf_impl(
3872 struct ggml_context * ctx,
3873 struct ggml_tensor * a,
3874 int n_past,
3875 bool inplace) {
3876 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
3877
3878 int32_t params[] = { n_past };
3879 ggml_set_op_params(result, params, sizeof(params));
3880
3881 result->op = GGML_OP_DIAG_MASK_INF;
3882 result->src[0] = a;
3883
3884 return result;
3885}
3886
3887struct ggml_tensor * ggml_diag_mask_inf(
3888 struct ggml_context * ctx,

Callers 2

ggml_diag_mask_infFunction · 0.85

Calls 3

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85
ggml_set_op_paramsFunction · 0.85

Tested by

no test coverage detected