Skip to content

Could you please update the code to use the latest version of PyTorch Geometric? #1

@liyongkang123

Description

@liyongkang123

First of all thank you very much for your excellent work, I tried to run your program on my own computer. I am using the latest version 2.0.3 of pyg, and version 1.9.0 of pytorch.

As you know, there are some differences between the 2.0.3 version of pyg and the 1.6.3 version used in your project.
After my own modification, I have been able to run HyperGCN, CEGAT, CEGCN and AllSetTransformer, but when I try to run HGNN, HNHN and HCHA, the code always reports an error, and the error occurs here:

layers.py line405
self.flow = 'target_to_source'
out = self.propagate(hyperedge_index, x=out, norm=D, alpha=alpha, size=(num_edges, num_nodes))

or
layers.py line303
self.flow = 'target_to_source'
out = self.propagate(hyperedge_index, x=out, norm=data.D_v_alpha_inv, size=(num_edges, num_nodes))
and it shows :
ValueError: Encountered tensor with size 4287 in dimension 0, but expected size 2708.

with 'cora' dataset.

I really find it very difficult to solve this problem, could you please update your code to help me out. Thank you very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions