03a7eb89e27b70f2ca0ac932ef4bace7569d6fab,keras/layers/recurrent.py,LSTM,step,#LSTM#Any#Any#,830
Before Change
B_W = states[3]
if self.consume_less == "gpu":
z = K.dot(x * B_W[0], self.W) + K.dot(h_tm1 * B_U[0], self.U) + self.b
z0 = z[:, :self.output_dim]
z1 = z[:, self.output_dim: 2 * self.output_dim]
z2 = z[:, 2 * self.output_dim: 3 * self.output_dim]
After Change
if self.implementation == 1:
z = K.dot(inputs * dp_mask[0], self.kernel)
z += K.dot(h_tm1 * rec_dp_mask[0], self.recurrent_kernel)
if self.use_bias:
z += self.bias
z0 = z[:, :self.units]
z1 = z[:, self.units: 2 * self.units]
z2 = z[:, 2 * self.units: 3 * self.units]
z3 = z[:, 3 * self.units:]
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: keras-team/keras
Commit Name: 03a7eb89e27b70f2ca0ac932ef4bace7569d6fab
Time: 2017-02-13
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: step
Project Name: keras-team/keras
Commit Name: a981a8c42c316831183cac7598266d577a1ea96a
Time: 2016-04-29
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: TimeDistributedDense
Method Name: call
Project Name: keras-team/keras
Commit Name: a981a8c42c316831183cac7598266d577a1ea96a
Time: 2016-04-29
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Highway
Method Name: call
Project Name: keras-team/keras
Commit Name: b001e36f189219faf0da82ce96a748912ce46212
Time: 2016-04-26
Author: braingineer@users.noreply.github.com
File Name: keras/layers/core.py
Class Name: Dense
Method Name: call
Project Name: keras-team/keras
Commit Name: a981a8c42c316831183cac7598266d577a1ea96a
Time: 2016-04-29
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: MaxoutDense
Method Name: call