Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Implement the layer normalization operator.

Open lcy-seso opened this issue 8 years ago • 4 comments

Layer normalization is required by the Transformer. I have ever had this note https://github.com/lcy-seso/learning_notes/blob/master/layer_normalization/layer_normalization.pdf .

Layer normalization is just transpose the input X first, and then the left calculation is the same as in batch normalization. But layer normalization does not need to maintain the the moving average of standard variance and means. The training and testing are the same for layer normalizatoin.

When impelementing the layer normalization operator. My rough thought is it is better to consider how to refactor/reuse the codes in batch normalization, however, it is also acceptable if after more thinking about this operator, we found it is better to make the impelmentation independent of batch normalization.

lcy-seso avatar Jan 03 '18 14:01 lcy-seso

Maybe someone is working on this already? https://github.com/PaddlePaddle/Paddle/issues/4701

sidgoyal78 avatar Jan 06 '18 19:01 sidgoyal78

@sidgoyal78 I comment and close the old issue. Currently, there is no one working on this operator.

lcy-seso avatar Jan 07 '18 02:01 lcy-seso

Okay, thanks for the clarification.

sidgoyal78 avatar Jan 07 '18 04:01 sidgoyal78

Sorry, I will have to stop working on this, and will un-assign myself.

sidgoyal78 avatar Jan 18 '18 03:01 sidgoyal78