7374442a1c1507051fb1f9ee1ef774c9a9654d8b,keras/layers/recurrent.py,LSTM,build,#LSTM#Any#,954
Before Change
regularizer=self.bias_regularizer,
constraint=self.bias_constraint)
if self.unit_forget_bias:
self.bias += K.concatenate([K.zeros((self.units,)),
K.ones((self.units,)),
K.zeros((self.units * 2,))])
else:
self.bias = None
self.kernel_i = self.kernel[:, :self.units]
After Change
regularizer=self.bias_regularizer,
constraint=self.bias_constraint)
if self.unit_forget_bias:
bias_value = np.zeros((self.units * 4,))
bias_value[self.units: self.units * 2] = 1.
K.set_value(self.bias, bias_value)
else:
self.bias = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: keras-team/keras
Commit Name: 7374442a1c1507051fb1f9ee1ef774c9a9654d8b
Time: 2017-03-12
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: build
Project Name: aleju/imgaug
Commit Name: bc87005e5dce729044e1a10286f9124d652e34d6
Time: 2019-08-25
Author: kontakt@ajung.name
File Name: imgaug/augmentables/kps.py
Class Name: Keypoint
Method Name: generate_similar_points_manhattan
Project Name: keras-team/keras
Commit Name: 6e289d71866b4782dbe752adce1f26ea895f5dd9
Time: 2017-03-12
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvLSTM2D
Method Name: build