8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f,keras/backend/tensorflow_backend.py,,update_add,#Any#Any#,1210

Before Change


    // Returns
        The variable `x` updated.
    
    return tf_state_ops.assign_add(x, increment)


@symbolic
def update_sub(x, decrement):

After Change


    // Returns
        The variable `x` updated.
    
    op = tf_state_ops.assign_add(x, increment)
    with tf.control_dependencies([op]):
        return tf.identity(x)


@symbolic
def update_sub(x, decrement):
    Update the value of `x` by subtracting `decrement`.
Italian Trulli
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_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


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