-
Notifications
You must be signed in to change notification settings - Fork 181
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
scatter or scatter_min fails when using torch.compile #440
Comments
This is currently expected, since the custom ops by
|
For this, we added |
If I understand correctly, you suggest that instead of using torch_sum or torch_scatter, we should use by default utils.scatter instead of directly calling scatter_min or scatter_max ? |
Yes, if you want |
They are simply not supported. It seems to be a long term goal, but it is somehow stale: pyg-team/pytorch_geometric#8890. This is really confusing, because pyg documents suggest that "there exists a few operations in PyG that will currently lead to graph breaks (but workaround exists)" in https://pytorch-geometric.readthedocs.io/en/latest/advanced/compile.html, but they do not mention that all scatter type ops, such as scatter_softmax, are not supported. |
Hello,
I can't compile any model that includes scatter or scatter min from torch_scatter.
For example in this beautiful script
The code fails with :
My torch version is 2.2.0 torch_geometric 2.5.2 and torch_scatter is 2.1.2,
The text was updated successfully, but these errors were encountered: