4acd61442955baa2509fdc2961284c9d2a986f34,tflearn/layers/recurrent.py,GRUCell,__call__,#GRUCell#Any#Any#Any#,697
Before Change
// We start with bias of 1.0 to not reset and not update.
self.W[0], self.b[0], r_u = _linear([inputs, state],
2 * self._num_units,
self.bias, self.W[0] ,
self.b[0], self.W_init, 1.0,
trainable=self.trainable,
restore=self.restore,
After Change
with tf.variable_scope("Linear/Gates", reuse=True):
self.W.append(tf.get_variable("Matrix"))
self.b.append(tf.get_variable("Bias"))
with tf.variable_scope("Linear/Candidate", reuse=True):
self.W.append(tf.get_variable("Matrix"))
self.b.append(tf.get_variable("Bias"))
return new_h, new_h
// --------------------
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: tflearn/tflearn
Commit Name: 4acd61442955baa2509fdc2961284c9d2a986f34
Time: 2016-07-01
Author: aymeric.damien@gmail.com
File Name: tflearn/layers/recurrent.py
Class Name: GRUCell
Method Name: __call__
Project Name: tflearn/tflearn
Commit Name: 4acd61442955baa2509fdc2961284c9d2a986f34
Time: 2016-07-01
Author: aymeric.damien@gmail.com
File Name: tflearn/layers/recurrent.py
Class Name: GRUCell
Method Name: __call__
Project Name: asyml/texar
Commit Name: 42efaa53edce9b84a98fef1fce24502e6d2ba941
Time: 2017-12-08
Author: shore@pku.edu.cn
File Name: texar/modules/encoders/transformer_encoders.py
Class Name: TransformerEncoder
Method Name: __init__
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: f791b89909d8ac69cac38610a4b1ed31d219920d
Time: 2018-08-01
Author: chipn@nvidia.com
File Name: open_seq2seq/encoders/lm_encoders.py
Class Name: AWDLSTMEncoder
Method Name: _encode