Closed andreas-albers closed 4 months ago
This error occurs when no neighbors within the cutoff were found. Fixed in 9d006e1. Since this error did not happen with the coordinate file you referred to, and it does not depend on pytorch device used, I will ask you @andreas-albers to confirm the fix.
I think you didn't mean to delte line 35 in 9d006e1, I reinserted it for testing. Catching the empty tensor will result in a diffrent RuntimeError downstream.
However, as you mentioned, the tensor shouldn't be empty in the first place (at least in the case of the above mentioned coordinates file).
Everything works fine if I force pytorch to run on the CPU by hardcoding self.device = 'cpu'
in this file. The error only occurs if cuda is utilized, which puzzles me.
Hi @andreas-albers . Do I understand correctly, that the issue is not yet resolved? Please check your python environment. You have cuda version of pytorch and cpu version of pytorch-cluster. Can you install pytorch-cluster using pyg channel on anaconda?
Hi @zubatyuk I checked diffrent versions of pytorch, pyrotch-cluster and cuda (including the install of pytorch-cluster using pyg channel on anaconda) and could not resolve the issue. However, since the issue is most likely related with my dependencies, I will close this issue.
I did not notice that you use Windows. Try running inside WSL or another Linux.
Hey, thanks for the ongoing development of the AIMNet potentials!
While running a minimum example with the
mol_single.xyz
structure, I encountered a RuntimeError:The tensor, which is returned by the
radius_graph()
function innblist.py line 35
is empty, resulting in the error.Running the same code entirely on CPU works fine. Any ideas what is causing this behavior? Or could this be a CUDA/GPU related problem of my setup?
Best, Andreas
ps: I'm using the following packages: