8d3775a7d695cea3bc398eb3e84da9606184299a,layers/tacotron2.py,Decoder,_init_states,#Decoder#Any#Any#Any#,158
Before Change
inputs.data.new(B, self.query_dim).zero_())
self.decoder_hidden = self.decoder_rnn_inits(
inputs.data.new_zeros(B).long())
self.decoder_cell = Variable(
inputs.data.new(B, self.decoder_rnn_dim).zero_())
After Change
// T = inputs.size(1)
if not keep_states:
self.query = torch.zeros(B, self.query_dim, device=inputs.device)
self.attention_rnn_cell_state = torch.zeros(B, self.query_dim, device=inputs.device)
self.decoder_hidden = torch.zeros(B, self.decoder_rnn_dim, device=inputs.device)
self.decoder_cell = torch.zeros(B, self.decoder_rnn_dim, device=inputs.device)
self.context = torch.zeros(B, self.encoder_embedding_dim, device=inputs.device)
self.inputs = inputs
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mozilla/TTS
Commit Name: 8d3775a7d695cea3bc398eb3e84da9606184299a
Time: 2019-09-23
Author: egolge@mozilla.com
File Name: layers/tacotron2.py
Class Name: Decoder
Method Name: _init_states
Project Name: mozilla/TTS
Commit Name: f038b1aa3fd670b406d7ad6898a613e4870c6c60
Time: 2019-07-21
Author: egolge@mozilla.com
File Name: layers/tacotron.py
Class Name: Decoder
Method Name: _init_states
Project Name: mozilla/TTS
Commit Name: 8d3775a7d695cea3bc398eb3e84da9606184299a
Time: 2019-09-23
Author: egolge@mozilla.com
File Name: layers/tacotron2.py
Class Name: Decoder
Method Name: get_go_frame