ggml_roll: Roll (Graph)

View source: R/operations.R

ggml_rollR Documentation

Roll (Graph)

Description

Circularly shifts tensor elements along dimensions 0..3.

Usage

ggml_roll(ctx, a, shift0 = 0L, shift1 = 0L, shift2 = 0L, shift3 = 0L)

Arguments

ctx

GGML context

a

Input tensor

shift0, shift1, shift2, shift3

Shift amount along each dimension

Value

Rolled tensor


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