Rescale

constructor(ctx: ExecutionContext, scale: Float = 255.0f)(source)

Parameters

T

The tensor data type

V

The value type

ctx

The execution context for tensor operations

scale

The value to divide by (default: 255.0f for image normalization)