d62cac7252eceac2cf49a7ab55c391b85769e30c,TTS/tts/layers/glow_tts/encoder.py,Encoder,forward,#Encoder#,129

Before Change


        x_mask = torch.unsqueeze(sequence_mask(x_lengths, x.size(2)),
                                 1).to(x.dtype)
        // pre-conv layers
        if self.encoder_type in ["transformer", "time-depth-separable"]:
            if self.use_prenet:
                x = self.pre(x, x_mask)
        // encoder

After Change


        x_mask = torch.unsqueeze(sequence_mask(x_lengths, x.size(2)),
                                 1).to(x.dtype)
        // pre-conv layers
        if hasattr(self, "pre") and self.use_prenet:
            x = self.pre(x, x_mask)
        // encoder
        x = self.encoder(x, x_mask)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: mozilla/TTS
Commit Name: d62cac7252eceac2cf49a7ab55c391b85769e30c
Time: 2021-01-06
Author: erogol@hotmail.com
File Name: TTS/tts/layers/glow_tts/encoder.py
Class Name: Encoder
Method Name: forward


Project Name: uhfband/keras2caffe
Commit Name: 8a1ca0529fe8ebaaf5e4d260e8e9305afd30868c
Time: 2018-09-11
Author: uhfband@gmail.com
File Name: keras2caffe/convert.py
Class Name:
Method Name: convert


Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params