-
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
Bool tensor does not support the -
operator
#616
Comments
I met the same issue. It might be because of the new pytorch version |
Thank you. This is already fixed in master, so installing from source should fix it. I will craft a new minor release soon. |
Hey, @rusty1s thanks for this amazing library. I met the same issue for Knn graph. I even installed the latest commit but the issue still persisted. Also, when I run tests, the issue repeats at multiple times for knn related functions. Other than the above errors, I also see failures with the error "ValueError: multi_class should be either multinomial or ovr, got auto" in the file logistic.py and there is also assertion error in the file test_signed_gcn.py. |
Please update |
Maybe I'm misunderstood, but doing |
Are you sure you have the latest version installed? You can check this via import torch_cluster
print(torch_cluster.__version__) And update via
|
I ended up solving the problem the way the OP solved it. I may take a look at your solution later. Thanks for your contributions to the open source world, rusty1s! |
Hello, I'm running the basic example of GCN under "Learning Methods on Graphs" in the introduction section: https://pytorch-geometric.readthedocs.io/en/latest/notes/introduction.html And I'm having the same issue. Should I downgrade pytorch, as this was working before? I have version 1.4.4 of torch_cluster already. My versions of pytorch are: >>> import torch ; print(torch.__version__)
1.2.0
>>> import torchvision ; print(torchvision.__version__)
0.4.0a0+6b959ee
>>> import torch_cluster ; print(torch_cluster.__version__)
1.4.4
import torch_geometric ; print(torch_geometric.__version__)
1.3.0 Any suggestions? |
This is a bug introduced by PyTorch 1.2. You can install PyTorch Geometric from master to fix this (just clone the repository and run |
@rusty1s thanks for the update! I just wanted to add that now, when you execute the example I mentioned, we receive a warning:
According to pytorch/pytorch#24918, in the future this will raise an error, so might be worth it to update the example. Thanks for such awesome tool! |
Thank you for the reminder, will work on it. |
🐛 Bug
Hi, this tool is very powerful and amazing. Thanks a lot!
However, when I ran gcn.py from example for testing, an error occurred:
It seems that bool tensor does not support the
-
operator yet. So I modified the line 107 in loop.py as:inv_mask = ~mask # inv_mask = 1 - mask
and then re-run gcn.py. The result shows that it works!
Environment
The text was updated successfully, but these errors were encountered: