ggml_clamp: Clamp (Graph)

View source: R/operations.R

ggml_clampR Documentation

Clamp (Graph)

Description

Creates a graph node for clamping values to a range: clamp(x, min, max)

Usage

ggml_clamp(ctx, a, min_val, max_val)

Arguments

ctx

GGML context

a

Input tensor

min_val

Minimum value

max_val

Maximum value

Value

Tensor with values clamped to [min_val, max_val]


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