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

Function ggml_set_param

ggml.c:6346–6354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6344////////////////////////////////////////////////////////////////////////////////
6345
6346void ggml_set_param(
6347 struct ggml_context * ctx,
6348 struct ggml_tensor * tensor) {
6349 tensor->is_param = true;
6350
6351 GGML_ASSERT(tensor->grad == NULL);
6352 tensor->grad = ggml_dup_tensor(ctx, tensor);
6353 ggml_format_name(tensor->grad, "%s (grad)", tensor->name);
6354}
6355
6356// ggml_compute_forward_dup
6357

Callers 6

mainFunction · 0.50
mainFunction · 0.50
set_param_modelFunction · 0.50
set_param_model_loraFunction · 0.50
set_param_modelFunction · 0.50
set_param_loraFunction · 0.50

Calls 2

ggml_dup_tensorFunction · 0.70
ggml_format_nameFunction · 0.70

Tested by 2

mainFunction · 0.40
mainFunction · 0.40