4ffda89c42361af48c15721b2739b36c52f053d6,layers/tacotron2.py,LinearBN,forward,#LinearBN#Any#,45

Before Change



    def forward(self, x):
        out = self.linear_layer(x)
        out = out.transpose(0, 1).transpose(1, 2)
        out = self.bn(out)
        out = out.transpose(1, 2).transpose(0, 1)
        return out


class Prenet(nn.Module):

After Change


        if len(out.shape)==3:
            out = out.permute(1, 2, 0)
        out = self.bn(out)
        if len(out.shape) == 3:
            out = out.permute(2, 0, 1)
        return out


class Prenet(nn.Module):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mozilla/TTS
Commit Name: 4ffda89c42361af48c15721b2739b36c52f053d6
Time: 2019-03-11
Author: egolge@mozilla.com
File Name: layers/tacotron2.py
Class Name: LinearBN
Method Name: forward


Project Name: MIC-DKFZ/trixi
Commit Name: 0d39c9dc19388c18362897c83cebbe12a063a752
Time: 2019-06-14
Author: jens.petersen@dkfz.de
File Name: trixi/logger/visdom/pytorchvisdomlogger.py
Class Name: PytorchVisdomLogger
Method Name: show_image_grid_heatmap


Project Name: MIC-DKFZ/trixi
Commit Name: 0d39c9dc19388c18362897c83cebbe12a063a752
Time: 2019-06-14
Author: jens.petersen@dkfz.de
File Name: trixi/logger/file/pytorchplotfilelogger.py
Class Name: PytorchPlotFileLogger
Method Name: show_image_grid_heatmap