You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "train_paper_field.py", line 242, in
node_rep = gnn.forward(node_feature.to(device), node_type.to(device), edge_time.to(device), edge_index.to(device), edge_type.to(device))
File "/home/liangxiao/pyHGT/OAG/pyHGT/model.py", line 79, in forward
meta_xs = gc(meta_xs, node_type, edge_index, edge_type, edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/liangxiao/pyHGT/OAG/pyHGT/conv.py", line 317, in forward
return self.base_conv(meta_xs, node_type, edge_index, edge_type, edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/liangxiao/pyHGT/OAG/pyHGT/conv.py", line 58, in forward
edge_type=edge_type, edge_time = edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 234, in propagate
kwargs)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 156, in collect
self.set_size(size, dim, data)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 118, in set_size
size[dim] = src.size(self.node_dim)
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got -2)
why do I have this error ? Is there anything wrong with my pyg version or anything else?(I use the new version)
The text was updated successfully, but these errors were encountered:
I also met this problem. Unfortunately, I can not change pyg version to 1.4.3 for some reason. Is there any other idea to solve this problem? For example , how should I change the code to fit the higher pyg version?
Traceback (most recent call last):
File "train_paper_field.py", line 242, in
node_rep = gnn.forward(node_feature.to(device), node_type.to(device), edge_time.to(device), edge_index.to(device), edge_type.to(device))
File "/home/liangxiao/pyHGT/OAG/pyHGT/model.py", line 79, in forward
meta_xs = gc(meta_xs, node_type, edge_index, edge_type, edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/liangxiao/pyHGT/OAG/pyHGT/conv.py", line 317, in forward
return self.base_conv(meta_xs, node_type, edge_index, edge_type, edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/home/liangxiao/pyHGT/OAG/pyHGT/conv.py", line 58, in forward
edge_type=edge_type, edge_time = edge_time)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 234, in propagate
kwargs)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 156, in collect
self.set_size(size, dim, data)
File "/home/liangxiao/anaconda3/envs/pyhgt/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 118, in set_size
size[dim] = src.size(self.node_dim)
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got -2)
why do I have this error ? Is there anything wrong with my pyg version or anything else?(I use the new version)
The text was updated successfully, but these errors were encountered: