5dec8de970eb520f6d4e6cc6c7934eb564a42a6c,nussl/ml/networks/modules.py,InstanceNorm,forward,#InstanceNorm#Any#,30
Before Change
def forward(self, data):
if self.use_instance_norm:
shape = data.shape
data = data.view(shape[0], 1, shape[1] , -1)
data = self.instance_norm(data)
data = data.view(shape)
return data
After Change
def forward(self, data):
if self.use_instance_norm:
data = data.transpose(2, 1)
shape = data.shape
new_shape = (shape[0], self.num_features, -1)
data = data.view(new_shape)
data = self.instance_norm(data)
data = data.view(shape)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: interactiveaudiolab/nussl
Commit Name: 5dec8de970eb520f6d4e6cc6c7934eb564a42a6c
Time: 2020-03-02
Author: prem@u.northwestern.edu
File Name: nussl/ml/networks/modules.py
Class Name: InstanceNorm
Method Name: forward
Project Name: hunkim/PyTorchZeroToAll
Commit Name: bee774aa7ab224e6646abe41022291ad34ff3fd5
Time: 2017-11-11
Author: hunkim@gmail.com
File Name: 12_1_rnn_basics.py
Class Name:
Method Name:
Project Name: interactiveaudiolab/nussl
Commit Name: 5dec8de970eb520f6d4e6cc6c7934eb564a42a6c
Time: 2020-03-02
Author: prem@u.northwestern.edu
File Name: nussl/ml/networks/modules.py
Class Name: BatchNorm
Method Name: forward
Project Name: asappresearch/sru
Commit Name: bd570b58cefa57062f8c14e06b83800c52f4925a
Time: 2019-09-18
Author: hp@asapp.com
File Name: sru/sru_functional.py
Class Name: SRU
Method Name: forward