torch_clip: Clip

View source: R/gen-namespace.R

torch_clipR Documentation

Clip

Description

Clip

Usage

torch_clip(self, min = NULL, max = NULL)

Arguments

self

(Tensor) the input tensor.

min

(Number) lower-bound of the range to be clamped to

max

(Number) upper-bound of the range to be clamped to

clip(input, min, max, *, out=None) -> Tensor

Alias for torch_clamp().


torch documentation built on May 29, 2024, 9:54 a.m.