chainer.functions.fixed_batch_normalization

chainer.functions.fixed_batch_normalization(x, gamma, beta, mean, var, eps=2e-05)[source]

Batch normalization function with fixed statistics.

This is a variant of batch normalization, where the mean and variance statistics are given by the caller as fixed variables. This is used on testing mode of the batch normalization layer, where batch statistics cannot be used for prediction consistency.

Parameters:
  • x (Variable) – Input variable.
  • gamma (Variable) – Scaling parameter of normalized data.
  • beta (Variable) – Shifting parameter of scaled normalized data.
  • mean (Variable) – Shifting parameter of input.
  • var (Variable) – Square of scaling parameter of input.
  • eps (float) – Epsilon value for numerical stability.

See also

functions.batch_normalization(), links.BatchNormalization