ggml_set_param: Set Tensor as Trainable Parameter

View source: R/operations.R

ggml_set_paramR Documentation

Set Tensor as Trainable Parameter

Description

Marks a tensor as a trainable parameter for backpropagation. The optimizer will compute gradients for this tensor during training.

Usage

ggml_set_param(tensor)

Arguments

tensor

Tensor pointer

Value

The tensor (for chaining)

See Also

ggml_set_loss, which marks the other end of the backward pass, and ggml_build_backward_expand.


ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.