f77c638d6dc0ba4533b94fa704e46cf478479aec,rllib/models/tf/layers/relative_multi_head_attention.py,RelativeMultiHeadAttention,rel_shift,#Any#,108

Before Change



        x = tf.pad(x, [[0, 0], [0, 0], [1, 0], [0, 0]])
        x = tf.reshape(x, [x_size[0], x_size[2] + 1, x_size[1], x_size[3]])
        x = tf.slice(x, [0, 1, 0, 0], [-1, -1, -1, -1])
        x = tf.reshape(x, x_size)

        return x

After Change



        x = tf.pad(x, [[0, 0], [0, 0], [1, 0], [0, 0]])
        x = tf.reshape(x, [x_size[0], x_size[2] + 1, x_size[1], x_size[3]])
        x = x[:, 1:, :, :]
        x = tf.reshape(x, x_size)

        return x
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ray-project/ray
Commit Name: f77c638d6dc0ba4533b94fa704e46cf478479aec
Time: 2020-06-23
Author: twakhare@gmail.com
File Name: rllib/models/tf/layers/relative_multi_head_attention.py
Class Name: RelativeMultiHeadAttention
Method Name: rel_shift


Project Name: tensorflow/models
Commit Name: 1498d9419b799c3df61d8a8b63a879dcbca4504e
Time: 2019-11-11
Author: YknZhu@users.noreply.github.com
File Name: research/deeplab/export_model.py
Class Name:
Method Name: main


Project Name: tryolabs/luminoth
Commit Name: 2a9ddf74c37131a07b38a97e07c7ce09881072f9
Time: 2017-08-31
Author: javirey@gmail.com
File Name: luminoth/models/fasterrcnn/rcnn_proposal.py
Class Name: RCNNProposal
Method Name: _build