Skip to content
Discussion options

You must be logged in to vote

After I modified the __init__() function of the PairData class, the previous error was gone.

def __init__(self, x_ca=None, edge_index_ca=None, edge_attr_ca=None,
                 x_an=None, edge_index_an=None, edge_attr_an=None, y=None):
        super(PairData, self).__init__()

However, when the code runs to the training set2set layer, the following error will be reported.

Traceback (most recent call last):
  File "main2.py", line 141, in <module>
    loss = train(epoch)
  File "main2.py", line 121, in train
    loss = F.mse_loss(model(data), data.y)
  File "D:\software\anaconda3\envs\pyg\lib\site-packages\torch\nn\modules\module.py", line 722, in _call_impl
    result = self.forward(*input

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jwchen25
Comment options

@rusty1s
Comment options

@jwchen25
Comment options

Answer selected by jwchen25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants