-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
【 HELP ❗️ 】Error about PyG2.5.0 : NameError: name 'OptPairTensor' is not defined #8968
Comments
I think maybe the typing.py from torch_geometric and the typing.py from python has some conflict? |
I tried the python3.10 instead of 3.8, but the Error still exists. |
Anyone could help me, please? |
You can temporally fix this by doing from torch_geometric.typing import OptPairTensor, OptTensor I will look into it. |
Thank you for your reply very much!!! |
It works, I don't know why I need to add But now another questions raise, just as #8959 |
This has been solved! |
Now the only question is why I need to add from torch_geometric.typing import OptPairTensor, OptTensor by hands. |
Because it's a bug in the code :) Will be fixed in #8973. |
🐛 Describe the bug
When I run the code, the Error raise as:
The coding is running well with PyG2.2.0 & Python=3.7 & Torch = 1.13 & cudatoolkit =11.3
The SimpleInteractionBlock is:
Versions
The text was updated successfully, but these errors were encountered: