batchNorm

fun batchNorm(input: DTensor, scaleShift: DTensor): BatchNormResult

The batchNorm op used for training

Return

BatchNormResult

Parameters

input

a tensor the last axis of which is the features dimension of size C

scaleShift

the combined scale and shift tensor, with shape (2, C)