c4d29cdf21abb94736781acc3c2d73ac6746e280,keras/backend/tensorflow_backend.py,,moving_average_update,#Any#Any#Any#,969
Before Change
if value.dtype != x.dtype:
value = tf.cast(value, x.dtype)
return moving_averages.assign_moving_average(
x, value, momentum, zero_debias=True)
// LINEAR ALGEBRA
After Change
An operation to update the variable.
with tf_ops.colocate_with(x):
decay = tf_ops.convert_to_tensor(1.0 - momentum)
if decay.dtype != x.dtype.base_dtype:
decay = tf_math_ops.cast(decay, x.dtype.base_dtype)
update_delta = (x - tf_math_ops.cast(value, x.dtype)) * decay
return tf_state_ops.assign_sub(x, update_delta)
// LINEAR ALGEBRA
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: c4d29cdf21abb94736781acc3c2d73ac6746e280
Time: 2019-03-05
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: moving_average_update
Project Name: keunwoochoi/kapre
Commit Name: 8cdbb1637b140c01f431831e7b2c2a63afc96209
Time: 2020-08-14
Author: gnuchoi+github@gmail.com
File Name: kapre/backend.py
Class Name:
Method Name: filterbank_mel
Project Name: keunwoochoi/kapre
Commit Name: 8cdbb1637b140c01f431831e7b2c2a63afc96209
Time: 2020-08-14
Author: gnuchoi+github@gmail.com
File Name: kapre/backend.py
Class Name:
Method Name: filterbank_log