Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relation_cov code not understand #341

Open
rongan-Arya opened this issue Jan 7, 2022 · 0 comments
Open

relation_cov code not understand #341

rongan-Arya opened this issue Jan 7, 2022 · 0 comments

Comments

@rongan-Arya
Copy link

in relation_conv.py, in the following funciton, edge_attr is the attribute of the edge, why we use it as an index? what does below equation get? matrix = tf.gather(self.matrix, edge_attr)

def apply_edge(self, x_j, edge_attr):
edge_attr, idx = tf.unique(edge_attr)
matrix = tf.gather(self.matrix, edge_attr)
matrix = tf.gather(matrix, idx)
matrix = tf.reshape(matrix, [-1, self.dim, self.fea_dim])
x_j = tf.expand_dims(x_j, -1)
res = tf.matmul(matrix, x_j)
return tf.reshape(res, [-1, self.dim])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant