5a7f6b0e74673eae86c07fc642018745443bb335,keras/optimizers.py,RMSprop,get_updates,#RMSprop#Any#Any#Any#,220
Before Change
def get_updates(self, params, constraints, loss):
grads = self.get_gradients(loss, params)
shapes = [K.get_variable_shape(p) for p in params]
accumulators = [K.zeros(shape) for shape in shapes]
self.weights = accumulators
self.updates = []
lr = self.lr
After Change
def get_updates(self, params, constraints, loss):
grads = self.get_gradients(loss, params)
accumulators = [K.zeros(K.get_variable_shape(p), dtype=K.dtype(p)) for p in params]
self.weights = accumulators
self.updates = []
lr = self.lr
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: keras-team/keras
Commit Name: 5a7f6b0e74673eae86c07fc642018745443bb335
Time: 2017-06-23
Author: bstriner@users.noreply.github.com
File Name: keras/optimizers.py
Class Name: RMSprop
Method Name: get_updates
Project Name: keras-team/keras
Commit Name: defa1283c44653c29b81403f9d9f19fb3df0a27d
Time: 2016-07-21
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: SGD
Method Name: get_updates
Project Name: keras-team/keras
Commit Name: 5a7f6b0e74673eae86c07fc642018745443bb335
Time: 2017-06-23
Author: bstriner@users.noreply.github.com
File Name: keras/optimizers.py
Class Name: Adam
Method Name: get_updates