6313ad3830b5fc05926168eeb5faea1afe8e19f3,open_seq2seq/decoders/tacotron2_decoder.py,Tacotron2Decoder,_decode,#Tacotron2Decoder#Any#,260
Before Change
// helper = tf.contrib.seq2seq.TrainingHelper(
// inputs=tgt_inputs,
// sequence_length=tgt_lengths)
elif self._mode == "eval":
// embedding_fn = lambda ids: tf.cast(tf.nn.embedding_lookup(self._dec_emb_w, ids),
// dtype=self.params["dtype"])
inputs = tf.zeros((_batch_size, self.num_audio_features))
helper = TacotronHelper(inputs=inputs,
sequence_length=spec_length,
enable_prenet=enable_prenet,
prenet_units=prenet_units,
prenet_layers=prenet_layers,
prenet_activation=prenet_activation,
mask_decoder_sequence=mask_decoder_sequence)
// context=mean_pool)
// helper = tf.contrib.seq2seq.TrainingHelper(
// inputs=encoder_outputs,
// sequence_length=enc_src_lengths)
After Change
time_major = self.params.get("time_major", False)
use_swap_memory = self.params.get("use_swap_memory", False)
if self._mode == "train" or self._mode == "eval":
maximum_iterations = tf.reduce_max(spec_length)
else:
maximum_iterations = tf.reduce_max(enc_src_lengths) * 5
// maximum_iterations = tf.reduce_max(spec_length)
final_outputs, final_state, final_sequence_lengths = tf.contrib.seq2seq.dynamic_decode(
// final_outputs, final_state, final_sequence_lengths, final_inputs = dynamic_decode(
decoder=decoder,
// impute_finished=False if self._decoder_type == "beam_search" else True,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 6313ad3830b5fc05926168eeb5faea1afe8e19f3
Time: 2018-06-20
Author: jasoli@nvidia.com
File Name: open_seq2seq/decoders/tacotron2_decoder.py
Class Name: Tacotron2Decoder
Method Name: _decode
Project Name: keras-team/keras
Commit Name: 47350dc6078053403c59e8da3fd63ac3ae12b5ec
Time: 2017-04-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: build
Project Name: keras-team/keras
Commit Name: 4a075dab06daf893be3c197914eff395d37769c6
Time: 2018-05-09
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvLSTM2DCell
Method Name: build