ggml_rope_inplace: Rotary Position Embedding In-place (Graph)

View source: R/operations.R

ggml_rope_inplaceR Documentation

Rotary Position Embedding In-place (Graph)

Description

In-place version of ggml_rope. Returns a view of the input tensor.

Usage

ggml_rope_inplace(ctx, a, b, n_dims, mode = 0L)

Arguments

ctx

GGML context

a

Input tensor (will be modified in-place)

b

Position tensor (int32)

n_dims

Number of dimensions to apply rotation to

mode

RoPE mode

Value

View of input tensor with RoPE applied


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