Learn R Programming

ggmlR (version 0.6.1)

ggml_diag_mask_inf_inplace: 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)

Value

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

Arguments

ctx

GGML context

a

Input tensor (will be modified in-place)

n_past

Number of past tokens