TypeError: forward() takes from 3 to 4 positional arguments but 5 were given
mokzheen opened this issue · 3 comments
mokzheen commented
yanglan0225 commented
This is a Pytorch-geometric version problem.
your version is higher than 1.3. after 1.3, they change the forward params, just delete self.add_loop is ok.
like : self.bn(1, F.relu(self.conv1(x0, adj, mask)))
yanglan0225 commented
This is a Pytorch-geometric version problem.
your version is higher than 1.3. after 1.3, they change the forward params, just delete self.add_loop is ok.like : self.bn(1, F.relu(self.conv1(x0, adj, mask)))
Refer to this website: https://github.com/rusty1s/pytorch_geometric/blob/a8a9031949fccda71a7e4fbbad7f60b0bef6765d/torch_geometric/nn/dense/dense_sage_conv.py#L6
mokzheen commented
ya removing this solves the bug, thanks a lot!