442423e30d72aeb2f63cce7baee056b0d929930d,keras/backend/tensorflow_backend.py,,update_sub,#Any#Any#,1259

Before Change


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


@symbolic
def moving_average_update(x, value, momentum):
    Compute the moving average of a variable.

After Change


    // Returns
        The variable `x` updated.
    
    return tf_state_ops.assign_sub(x, decrement)


@symbolic
def moving_average_update(x, value, momentum):
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_sub


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