145170ca9bbd89aa01d8a40841e3c039d3683af8,stellargraph/layer/graph_attention.py,GraphAttention,call,#GraphAttention#Any#,211

Before Change


            N = K.int_shape(inputs[1])[-1]
            if N is not None:
                // create self-loops
                A = tf.linalg.set_diag(A, K.cast(np.ones((N,)), dtype="float"))
            else:
                raise ValueError(
                    "{}: need to know number of nodes to add self-loops; obtained None instead".format(

After Change


        out_indices = inputs[1]  // output indices (1 x K)
        A = inputs[2]  // Adjacency matrix (1 x N x N)

        print(">>", X.shape, A.shape, out_indices.shape)

        batch_dim, n_nodes, _ = K.int_shape(X)
        if batch_dim != 1:
            raise ValueError(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: 145170ca9bbd89aa01d8a40841e3c039d3683af8
Time: 2019-06-03
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/graph_attention.py
Class Name: GraphAttention
Method Name: call


Project Name: eriklindernoren/Keras-GAN
Commit Name: 5c18953a3da18402d3fcc9ff96d1e983d48c98cb
Time: 2018-04-16
Author: eriklindernoren@gmail.com
File Name: pix2pix/pix2pix.py
Class Name: Pix2Pix
Method Name: train


Project Name: slinderman/pyhawkes
Commit Name: 279fbb4f034356c651614a8f67d94c9489e7758a
Time: 2017-04-27
Author: scott.linderman@gmail.com
File Name: examples/inference/standard_bfgs_demo.py
Class Name:
Method Name: demo


Project Name: bethgelab/foolbox
Commit Name: c96750dfbf01283bb1f2fb27ea656f73a5138c61
Time: 2020-02-10
Author: 5895436+zimmerrol@users.noreply.github.com
File Name: foolbox/attacks/ead.py
Class Name: EADAttack
Method Name: __call__