14a4d1a061872622d992ec39369bd24a78e292cc,models/tacotrongst.py,TacotronGST,forward,#TacotronGST#Any#Any#Any#Any#,44

Before Change


        encoder_outputs = self._add_speaker_embedding(encoder_outputs,
                                                      speaker_ids)
        gst_outputs = self.gst(mel_specs)
        gst_outputs = gst_outputs.expand(-1, encoder_outputs.size(1), -1)
        encoder_outputs = encoder_outputs + gst_outputs
        mel_outputs, alignments, stop_tokens = self.decoder(
            encoder_outputs, mel_specs, mask)
        mel_outputs = mel_outputs.view(B, -1, self.mel_dim)
        linear_outputs = self.postnet(mel_outputs)

After Change


        self._init_states()
        self.compute_speaker_embedding(speaker_ids)
        if self.num_speakers > 1:
            inputs = self._concat_speaker_embedding(inputs,
                                                self.speaker_embeddings)
        encoder_outputs = self.encoder(inputs)
        if self.num_speakers > 1:
            encoder_outputs = self._concat_speaker_embedding(encoder_outputs,
                                                        self.speaker_embeddings)
        gst_outputs = self.gst(mel_specs)
        encoder_outputs = self._concat_speaker_embedding(
            encoder_outputs, gst_outputs)
        mel_outputs, alignments, stop_tokens = self.decoder(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: mozilla/TTS
Commit Name: 14a4d1a061872622d992ec39369bd24a78e292cc
Time: 2019-09-12
Author: egolge@mozilla.com
File Name: models/tacotrongst.py
Class Name: TacotronGST
Method Name: forward


Project Name: pytorch/fairseq
Commit Name: 3dcb5c77165c1a0c33a35a7831182f1aa2e8ad73
Time: 2019-10-18
Author: changhan@fb.com
File Name: fairseq/models/model_utils.py
Class Name:
Method Name: fill_tensors


Project Name: ncullen93/torchsample
Commit Name: a7d92f7020dfe8854430ef13ed2923b2606a6262
Time: 2017-05-11
Author: ncullen.th@dartmouth.edu
File Name: torchsample/utils.py
Class Name:
Method Name: th_random_choice