625fbd05fef5c015c9b0e9cedbf12f639a6b5a76,keras_rcnn/backend/tensorflow_backend.py,,scatter_add_tensor,#,87

Before Change



        updates = tensorflow.convert_to_tensor(updates, name="updates")

        ref_shape = tensorflow.shape(ref, out_type=indices.dtype, name="ref_shape")

        scattered_updates = tensorflow.scatter_nd(
            indices, updates, ref_shape, name="scattered_updates"
        )

        with tensorflow.control_dependencies(
            [
                tensorflow.assert_equal(
                    ref_shape,
                    tensorflow.shape(scattered_updates, out_type=indices.dtype),
                )
            ]
        ):
            output = tensorflow.add(ref, scattered_updates, name=scope)

        return output


def meshgrid(*args, **kwargs):
    return tensorflow.meshgrid(*args, **kwargs)

After Change


    :return: Same as ref. Returned as a convenience for operations that want
    to use the updated values after the update is done.
    
    return tensorflow.tensor_scatter_nd_add(ref, indices, updates, name)


def meshgrid(*args, **kwargs):
    return tensorflow.compat.v1.meshgrid(*args, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: 625fbd05fef5c015c9b0e9cedbf12f639a6b5a76
Time: 2020-05-19
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/tensorflow_backend.py
Class Name:
Method Name: scatter_add_tensor


Project Name: danforthcenter/plantcv
Commit Name: a99de822ad4c2b57061192e1e78a7e49f7ebc1dc
Time: 2019-09-30
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/apply_mask.py
Class Name:
Method Name: apply_mask


Project Name: explosion/thinc
Commit Name: 019fa4d7f8216b9a906db49b64e02f9be08c3826
Time: 2019-12-25
Author: honnibal+gh@gmail.com
File Name: thinc/describe.py
Class Name: Weights
Method Name: __get__