% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/operations.R
\name{ggml_view_4d}
\alias{ggml_view_4d}
\title{4D View with Byte Offset (Graph)}
\usage{
ggml_view_4d(ctx, a, ne0, ne1, ne2, ne3, nb1, nb2, nb3, offset = 0)
}
\arguments{
\item{ctx}{GGML context}

\item{a}{Source tensor}

\item{ne0}{Size of dimension 0}

\item{ne1}{Size of dimension 1}

\item{ne2}{Size of dimension 2}

\item{ne3}{Size of dimension 3}

\item{nb1}{Stride for dimension 1 (in bytes)}

\item{nb2}{Stride for dimension 2 (in bytes)}

\item{nb3}{Stride for dimension 3 (in bytes)}

\item{offset}{Byte offset from the start of tensor data}
}
\value{
View tensor
}
\description{
Creates a 4D view of a tensor starting at a byte offset.
The view shares memory with the source tensor.
CRITICAL for KV-cache operations in transformers.
}
