442423e30d72aeb2f63cce7baee056b0d929930d,keras/backend/tensorflow_backend.py,,update_add,#Any#Any#,1243

Before 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`.

After Change


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


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: 442423e30d72aeb2f63cce7baee056b0d929930d
Time: 2019-07-01
Author: psv@google.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update_add


Project Name: keras-team/keras
Commit Name: 442423e30d72aeb2f63cce7baee056b0d929930d
Time: 2019-07-01
Author: psv@google.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update


Project Name: keras-team/keras
Commit Name: 442423e30d72aeb2f63cce7baee056b0d929930d
Time: 2019-07-01
Author: psv@google.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: update_sub