@sourceacademy/torch
    Preparing search index...

    Variable clipConst

    clip: (input: Tensor, min: number, max: number) => Tensor = clamp

    Alias for clamp.

    Type Declaration

      • (input: Tensor, min: number, max: number): Tensor
      • Clamps all elements in input tensor to the range [min, max].

        Parameters

        • input: Tensor
        • min: number
        • max: number

        Returns Tensor