% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/operations.R
\name{ggml_diag_mask_zero}
\alias{ggml_diag_mask_zero}
\title{Diagonal Mask with Zero (Graph)}
\usage{
ggml_diag_mask_zero(ctx, a, n_past)
}
\arguments{
\item{ctx}{GGML context}

\item{a}{Input tensor}

\item{n_past}{Number of past tokens}
}
\value{
Tensor with same shape as input, elements above diagonal set to 0
}
\description{
Creates a graph node that sets elements above the diagonal to 0.
Alternative to -Inf masking for certain use cases.
}
