ggml_repeat_back: Repeat Backward (Graph)

View source: R/operations.R

ggml_repeat_backR Documentation

Repeat Backward (Graph)

Description

Backward pass for repeat operation - sums repetitions back to original shape. Used for gradient computation during training.

Usage

ggml_repeat_back(ctx, a, b)

Arguments

ctx

GGML context

a

Input tensor (gradients from repeated tensor)

b

Target shape tensor (original tensor before repeat)

Value

Tensor with summed gradients matching shape of b


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