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

Function ggml_set_op_params_i32

ggml.c:2606–2609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2604}
2605
2606static void ggml_set_op_params_i32(struct ggml_tensor * tensor, uint32_t i, int32_t value) {
2607 assert(i < GGML_MAX_OP_PARAMS / sizeof(int32_t));
2608 ((int32_t *)(tensor->op_params))[i] = value;
2609}
2610
2611struct ggml_tensor * ggml_set_zero(struct ggml_tensor * tensor) {
2612 memset(tensor->data, 0, ggml_nbytes(tensor));

Callers 3

ggml_add_rel_pos_implFunction · 0.70
ggml_unary_implFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected