Learn R Programming

ggmlR (version 0.8.1)

ggml_get_rel_pos: Get Relative Position (Graph)

Description

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

Usage

ggml_get_rel_pos(ctx, a, qh, kh)

Value

Relative-position tensor

Arguments

ctx

GGML context

a

Input tensor

qh

Query height

kh

Key height