Instance Normalization

This repo implements the Instance Normalization with different programming languages or libraries: Tensorflow (Keras), Numpy, C++, Eigen, CUDA. Each sample includes both the forward and backward passes and results are checked compared with Keras's InstanceNormalization Instance.

Instance Normalization Forward Pass

Suppose are batch, channel and feature dimensions respectively.


Instance Normalization Backward Pass


Here we can view as a composition function , where and , are defined as above. Therefore, we get:

  • Compute

  • Compute

  • Compute

, where the last term is 0