442423e30d72aeb2f63cce7baee056b0d929930d,keras/backend/tensorflow_backend.py,,update,#,1227

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

After Change


    // Returns
        The variable `x` updated.
    
    return tf_state_ops.assign(x, new_x)


def update_add(x, increment):
    Update the value of `x` by adding `increment`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

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


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