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

Function ggml_set_op_params

ggml.c:2595–2599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2593}
2594
2595static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) {
2596 GGML_ASSERT(tensor != NULL); // silence -Warray-bounds warnings
2597 assert(params_size <= GGML_MAX_OP_PARAMS);
2598 memcpy(tensor->op_params, params, params_size);
2599}
2600
2601static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) {
2602 assert(i < GGML_MAX_OP_PARAMS / sizeof(int32_t));

Callers 15

ggml_acc_implFunction · 0.70
ggml_norm_implFunction · 0.70
ggml_rms_norm_implFunction · 0.70
ggml_rms_norm_backFunction · 0.70
ggml_mul_mat_idxFunction · 0.70
ggml_axpyFunction · 0.70
ggml_set_implFunction · 0.70
ggml_view_implFunction · 0.70
ggml_permuteFunction · 0.70
ggml_diag_mask_inf_implFunction · 0.70
ggml_diag_mask_zero_implFunction · 0.70
ggml_rope_implFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected