Normalize

constructor(ctx: ExecutionContext, mean: FloatArray, std: FloatArray, channelAxis: Int = -1)(source)

Parameters

T

The tensor data type

V

The value type

ctx

The execution context for tensor operations

mean

Per-channel mean values to subtract

std

Per-channel standard deviation values to divide by

channelAxis

The axis containing channel information (default: -1 for last axis)