Clamp

constructor(ctx: ExecutionContext, min: Float, max: Float)(source)

Parameters

T

The tensor data type

V

The value type

ctx

The execution context for tensor operations

min

The minimum value (inclusive)

max

The maximum value (inclusive)