ggml_gelu_inplace: GELU Activation In-place (Graph)

View source: R/operations.R

ggml_gelu_inplaceR Documentation

GELU Activation In-place (Graph)

Description

Creates a graph node for in-place GELU (Gaussian Error Linear Unit) activation. CRITICAL for GPT models with memory efficiency.

Usage

ggml_gelu_inplace(ctx, a)

Arguments

ctx

GGML context

a

Input tensor (will be modified in-place)

Value

View of tensor a with GELU applied


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