ggml_get_rel_pos: Get Relative Position (Graph)

View source: R/operations.R

ggml_get_rel_posR Documentation

Get Relative Position (Graph)

Description

Gathers relative-position rows for relative-position attention bias.

Usage

ggml_get_rel_pos(ctx, a, qh, kh)

Arguments

ctx

GGML context

a

Input tensor

qh

Query height

kh

Key height

Value

Relative-position tensor


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