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

Error when running the link prediction task using c-rgcn #15

Open
Sidharth3301 opened this issue May 11, 2022 · 1 comment
Open

Error when running the link prediction task using c-rgcn #15

Sidharth3301 opened this issue May 11, 2022 · 1 comment

Comments

@Sidharth3301
Copy link

Sidharth3301 commented May 11, 2022

Using the default config file present in /configs/c-rgcn/lp-WN18.yaml after changing the weight initialisation as suggested in #12, I get the following error.

INFO - R-GCN Link Prediction  - Started
Start training...
ERROR - R-GCN Link Prediction  - Failed after 0:00:02!
Traceback (most recent calls WITHOUT Sacred internals):
  File "experiments/predict_links.py", line 151, in train
    predictions, penalty = model(graph, batch_idx)
  File "/usr/local/envs/torch_rgcn_venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/content/drive/MyDrive/research/dr/torch-rgcn/torch_rgcn/models.py", line 235, in forward
    x = self.rgc1(graph, features=x)
  File "/usr/local/envs/torch_rgcn_venv/lib/python3.7/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/content/drive/MyDrive/research/dr/torch-rgcn/torch_rgcn/layers.py", line 550, in forward
    fw = torch.einsum('ni, rio -> rno', features, weights).contiguous()
  File "/usr/local/envs/torch_rgcn_venv/lib/python3.7/site-packages/torch/functional.py", line 201, in einsum
    return torch._C._VariableFunctions.einsum(equation, operands)
RuntimeError: size of dimension does not match previous size, operand 1, dim 1

Any help is appreciated, TIA!

@nicolas-hbt
Copy link

Hi, did you find any solution? I am encountering this very same issue.

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

2 participants