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

Function ggml_set_op_params

subprojects/llama.cpp/ggml/src/ggml-impl.h:141–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139// tensor params
140
141static void ggml_set_op_params(struct ggml_tensor * tensor, const void * params, size_t params_size) {
142 GGML_ASSERT(tensor != NULL); // silence -Warray-bounds warnings
143 assert(params_size <= GGML_MAX_OP_PARAMS);
144 memcpy(tensor->op_params, params, params_size);
145}
146
147static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) {
148 assert(i < GGML_MAX_OP_PARAMS / sizeof(int32_t));

Callers 15

ggml_acc_implFunction · 0.85
ggml_leaky_reluFunction · 0.85
ggml_norm_implFunction · 0.85
ggml_rms_norm_implFunction · 0.85
ggml_rms_norm_backFunction · 0.85
ggml_scale_implFunction · 0.85
ggml_set_implFunction · 0.85
ggml_view_implFunction · 0.85
ggml_permuteFunction · 0.85
ggml_diag_mask_inf_implFunction · 0.85
ggml_diag_mask_zero_implFunction · 0.85
ggml_soft_max_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected