ScaleAndShift

constructor(ctx: ExecutionContext, scale: Float = 1.0f, offset: Float = 0.0f)(source)

Parameters

T

The tensor data type

V

The value type

ctx

The execution context for tensor operations

scale

The value to multiply by

offset

The value to add after scaling