def clamp

stelliferous@0.0.2.0 · tensor_f32.bend:228

import stelliferous@0.0.2.0/tensor_f32.bend as TensorF32
import Base
import stelliferous@0.0.2.0/math_compare.bend as Compare
import stelliferous@0.0.2.0/tensor.bend as Tensors
import stelliferous@0.0.2.0/tensor_operations.bend as Operations

228def clamp(tensor: Tensor(),+low: F32,+high: F32) -> Tensor():
229  Tensors.apply_context(~F32,~Compare.Bounds,~Operations.lanes(~Compare.Bounds,~Compare.clamp),Compare.Bounds{low,high},"clamp",0.5,tensor)

Uses (6)

Used by (0)

No other definition uses this definition.