jihunchoi / recurrent-batch-normalization-pytorch

PyTorch implementation of recurrent batch normalization
243 stars 34 forks source link

sequence-wise normalization #8

Open sekigh opened 6 years ago

sekigh commented 6 years ago

Helow,

I am looking for pytorch code for LSTM batch normalization written as sequence-wise normalization in the Cooijmans' paper applicable to input with variable time length, say in Penn Treebank. I have your codes for s-MNIST/p-MNIST running on my local machine. I would like to expand that environment, hopefully, replacing SeparateBatchNorm1d with a new one. Thank you in advance.

Hiroshi

jihunchoi commented 6 years ago

Sorry for the late reply. As far as I understood, the paper states that an element whose time index is larger than T_max just uses the population statistics of time T_max. I think this feature is already implemented in the SeparateBatchNorm1d class.

sekigh commented 5 years ago

Thank you for your response. I just read your article. Sorry for late response. My application uses speech and actually employs many speech sequences with different time lengths. So hopefully, I prefer to sequence-wise batch normalization to frame-wise one with T_max expansion. It looks like there is no such a script. I understood.