adabf33fa59acb036ddda9a57a4fdf023c1dbaca,deepctr/layers.py,AFMLayer,call,#AFMLayer#Any#,114

Before Change


                row.append(i)
                col.append(j)
        p = tf.concat([embeds_vec_list[idx] for idx in row],axis=1)
        q = tf.concat([embeds_vec_list[idx] for idx in col],axis=1)
        inner_product = p * q

        bi_interaction = inner_product

After Change


        //     for j in range(i + 1, num_inputs):
        //         row.append(i)
        //         col.append(j)
        for r, c in itertools.combinations(embeds_vec_list, 2):
            row.append(r)
            col.append(c)
        //p = tf.concat([embeds_vec_list[idx] for idx in row],axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: shenweichen/DeepCTR
Commit Name: adabf33fa59acb036ddda9a57a4fdf023c1dbaca
Time: 2018-12-19
Author: wcshen1994@163.com
File Name: deepctr/layers.py
Class Name: AFMLayer
Method Name: call


Project Name: gboeing/osmnx
Commit Name: b2be440a78c9da841c3f1bdfa34e5dc0dc1e669c
Time: 2020-11-19
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: gboeing/osmnx
Commit Name: d7b2db3c5262c82c44958afc2500efe0838f0884
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys