Learn R Programming

ggmlR (version 0.8.1)

ggml_roll: Roll (Graph)

Description

Circularly shifts tensor elements along dimensions 0..3.

Usage

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

Value

Rolled tensor

Arguments

ctx

GGML context

a

Input tensor

shift0, shift1, shift2, shift3

Shift amount along each dimension