2a3d4722c21d99d882b2cbc2da451108147fe1c4,keras/layers/recurrent.py,GRU,get_constants,#GRU#Any#,587

Before Change


            constants.append([K.cast_to_floatx(1.) for _ in range(3)])

        if 0 < self.dropout_W < 1:
            input_shape = self.input_spec[0].shape
            input_dim = input_shape[-1]
            ones = K.ones_like(K.reshape(x[:, 0, 0], (-1, 1)))
            ones = K.tile(ones, (1, int(input_dim)))
            B_W = [K.in_train_phase(K.dropout(ones, self.dropout_W), ones) for _ in range(3)]

After Change


            constants.append([K.cast_to_floatx(1.) for _ in range(3)])

        if 0 < self.dropout_W < 1:
            input_shape = K.int_shape(x)
            input_dim = input_shape[-1]
            ones = K.ones_like(K.reshape(x[:, 0, 0], (-1, 1)))
            ones = K.tile(ones, (1, int(input_dim)))
            B_W = [K.in_train_phase(K.dropout(ones, self.dropout_W), ones) for _ in range(3)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: GRU
Method Name: get_constants


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: get_constants


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: GRU
Method Name: preprocess_input


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: SimpleRNN
Method Name: preprocess_input


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: preprocess_input


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/wrappers.py
Class Name: TimeDistributed
Method Name: call


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/normalization.py
Class Name: BatchNormalization
Method Name: call


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: Recurrent
Method Name: call


Project Name: keras-team/keras
Commit Name: 2a3d4722c21d99d882b2cbc2da451108147fe1c4
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: SimpleRNN
Method Name: get_constants