Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ NN_batch_norm2d()

void NN_batch_norm2d ( Tensor out,
const Tensor in,
const Tensor weight,
const Tensor bias,
float  eps,
const Tensor running_mean,
const Tensor running_va 
)

Applies Batch Normalization over a 4D input.

Parameters
outthe output tensor of shape (batch_size, height, width, channels)
inthe input tensor of shape (batch_size, height, width, channels)
weightthe learnable weights of the module of shape (channels), or NULL if no weight is applied
biasthe learnable bias of the module of shape (channels), or NULL if no bias is applied
epsa value added to the denominator for numerical stability
running_meanthe running mean of the module of shape (channels), or NULL if no running mean is applied
running_varthe running variance of the module of shape (channels), or NULL if no running variance is applied