c5b622784882157eb99c35f3d48aa2f041e597b1,layers/tacotron.py,Decoder,_init_states,#Decoder#Any#,350

Before Change


        B = inputs.size(0)
        T = inputs.size(1)
        // go frame as zeros matrix
        initial_memory = inputs.data.new(B, self.memory_dim * self.r).zero_()
        // decoder states
        attention_rnn_hidden = inputs.data.new(B, 256).zero_()
        decoder_rnn_hiddens = [

After Change


        // decoder states
        attention_rnn_hidden = self.attention_rnn_init(inputs.data.new_zeros(B).long())
        decoder_rnn_hiddens = [
            self.decoder_rnn_inits(inputs.data.new_tensor([idx]*B).long())
            for idx in range(len(self.decoder_rnns))
        ]
        current_context_vec = inputs.data.new(B, self.in_features).zero_()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mozilla/TTS
Commit Name: c5b622784882157eb99c35f3d48aa2f041e597b1
Time: 2019-02-06
Author: egolge@mozilla.com
File Name: layers/tacotron.py
Class Name: Decoder
Method Name: _init_states


Project Name: elbayadm/attn2d
Commit Name: c2165224d198450a3b4329ae099a772aa65d51c5
Time: 2019-10-08
Author: changhan@fb.com
File Name: fairseq/models/levenshtein_transformer.py
Class Name: LevenshteinTransformerModel
Method Name: forward_decoder