ggml_diag_mask_inf_inplace: Diagonal Mask with -Inf In-place (Graph)

View source: R/operations.R

ggml_diag_mask_inf_inplaceR Documentation

Diagonal Mask with -Inf In-place (Graph)

Description

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

Usage

ggml_diag_mask_inf_inplace(ctx, a, n_past)

Arguments

ctx

GGML context

a

Input tensor (will be modified in-place)

n_past

Number of past tokens

Value

View of input tensor with elements above diagonal set to -Inf


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