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



    def forward(self, x):
        out = self.linear_layer(x)
        if len(out.shape)==3:
            out = out.permute(1, 2, 0)
        out = self.bn(out)
        if len(out.shape) == 3:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

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: CellProfiler/CellProfiler
Commit Name: 02bb4ed03e72ddf68e6d1aa986f428baf0afe014
Time: 2020-08-17
Author: dstirling@broadinstitute.org
File Name: cellprofiler/modules/measuretexture.py
Class Name: MeasureTexture
Method Name: run_one


Project Name: RaRe-Technologies/gensim
Commit Name: cac5f014c09193f7a5ad6b71e4012defa0a96baa
Time: 2010-09-05
Author: radimrehurek@seznam.cz
File Name: src/gensim/matutils.py
Class Name:
Method Name: corpus2csc


Project Name: catalyst-team/catalyst
Commit Name: 1ef3ad90a3423ed15ca41e0ea4e81012ebe84a9f
Time: 2020-08-11
Author: scitator@gmail.com
File Name: catalyst/data/scripts/project_embeddings.py
Class Name:
Method Name: main


Project Name: RaRe-Technologies/gensim
Commit Name: c55d1b295cb6717ba6494917b88183e8d3f284a9
Time: 2010-09-05
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/matutils.py
Class Name:
Method Name: corpus2csc


Project Name: pymc-devs/pymc3
Commit Name: f565c6fccb4dd503f13f01146d0a6c841c0e13f6
Time: 2016-10-03
Author: becker.mr@gmail.com
File Name: pymc3/diagnostics.py
Class Name:
Method Name: gelman_rubin