a598bab314fcd5352f70597d3bb8506c47254cc5,texar/modules/decoders/rnn_decoder_base.py,RNNDecoderBase,_build,#RNNDecoderBase#,112
Before Change
outputs, final_state, sequence_lengths = dynamic_decode(
decoder=self, maximum_iterations=max_decoding_length)
self._add_internal_trainable_variables()
// Add trainable variables of `self._cell` which may be constructed
// externally.
self._add_trainable_variable(
layers.get_rnn_cell_trainable_variables(self._cell))
After Change
outputs, final_state, sequence_lengths = dynamic_decode(
decoder=self, maximum_iterations=max_decoding_length)
if not self._built:
self._add_internal_trainable_variables()
// Add trainable variables of `self._cell` which may be
// constructed externally.
self._add_trainable_variable(
layers.get_rnn_cell_trainable_variables(self._cell))
if isinstance(self._output_layer, tf.layers.Layer):
self._add_trainable_variable(
self._output_layer.trainable_variables)
self._built = True
return outputs, final_state, sequence_lengths
def _rnn_output_size(self):
size = self._cell.output_size
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: asyml/texar
Commit Name: a598bab314fcd5352f70597d3bb8506c47254cc5
Time: 2018-03-17
Author: zhitinghu@gmail.com
File Name: texar/modules/decoders/rnn_decoder_base.py
Class Name: RNNDecoderBase
Method Name: _build
Project Name: asyml/texar
Commit Name: f9bcfc0c35aecbe611f7b1e46f768cd3b157a879
Time: 2018-08-05
Author: zhiting.hu@petuum.com
File Name: texar/modules/connectors/connectors.py
Class Name: ReparameterizedStochasticConnector
Method Name: _build
Project Name: asyml/texar
Commit Name: f9bcfc0c35aecbe611f7b1e46f768cd3b157a879
Time: 2018-08-05
Author: zhiting.hu@petuum.com
File Name: texar/modules/connectors/connectors.py
Class Name: StochasticConnector
Method Name: _build
Project Name: asyml/texar
Commit Name: f9bcfc0c35aecbe611f7b1e46f768cd3b157a879
Time: 2018-08-05
Author: zhiting.hu@petuum.com
File Name: texar/modules/connectors/connectors.py
Class Name: MLPTransformConnector
Method Name: _build
Project Name: asyml/texar
Commit Name: 269e11a506f1dfa80d95f27b3e2d3df845c80ae3
Time: 2017-12-09
Author: zhiting.hu@petuum.com
File Name: texar/modules/encoders/transformer_encoders.py
Class Name: TransformerEncoder
Method Name: _build