8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f,keras/backend/tensorflow_backend.py,,update,#Any#Any#,1196
Before Change
// Returns
The variable `x` updated.
return tf_state_ops.assign(x, new_x)
@symbolic
def update_add(x, increment):
After Change
// Returns
The variable `x` updated.
op = tf_state_ops.assign(x, new_x)
with tf.control_dependencies([op]):
return tf.identity(x)
@symbolic
def update_add(x, increment):
Update the value of `x` by adding `increment`.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update_add
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update_sub