ggml_get_rows_back: Get Rows Backward (Graph)

View source: R/operations.R

ggml_get_rows_backR Documentation

Get Rows Backward (Graph)

Description

Backward pass for ggml_get_rows operation. Accumulates gradients at the original row positions.

Usage

ggml_get_rows_back(ctx, a, b, c)

Arguments

ctx

GGML context

a

Gradient of get_rows output

b

Index tensor (same as forward pass)

c

Reference tensor defining output shape

Value

Gradient tensor for the embedding matrix


ggmlR documentation built on July 14, 2026, 1:08 a.m.