pytorch_geometric_temporal
pytorch_geometric_temporal copied to clipboard
Wrong import: torch_geometric.utils.to_dense_adj
Hi,
There is a broken import in torch_geometric_temporal\nn\attention\tsagcn.py, line 6:
from torch_geometric.utils.to_dense_adj import to_dense_adj
should be changed to
from torch_geometric.utils._to_dense_adj import to_dense_adj
.
Would be great if that could be fixed. Thanks!
Really hoping the above can be fixed, in order to be able to use torch geometric temporal
@anna-inf-met You can just change your local tsagcn.py
as suggested by @ber0i .
@anna-inf-met You can just change your local
tsagcn.py
as suggested by @ber0i .
In what directory should I put the tsagcn.py file? What is the directory structure? Could you please provide more information?
@louiswng When installing a package, say torch_geometric_temporal, the corresponding code is stored somewhere on your computer. For example, I use miniconda and all torch_geometric_temporal code installed to a virtual environment can be found in
C:\Users[user name]\AppData\Local\miniconda3\envs[env name]\Lib\site-packages\torch_geometric_temporal
You can then navigate to torch_geometric_temporal\nn\attention\tsagcn.py and open and edit the code as described above.
Does that help? Let me know if there's still an open question. :)
@louiswng When installing a package, say torch_geometric_temporal, the corresponding code is stored somewhere on your computer. For example, I use miniconda and all torch_geometric_temporal code installed to a virtual environment can be found in
C:\Users[user name]\AppData\Local\miniconda3\envs[env name]\Lib\site-packages\torch_geometric_temporal
You can then navigate to torch_geometric_temporal\nn\attention\tsagcn.py and open and edit the code as described above.
Does that help? Let me know if there's still an open question. :)
Problem solved, thank you very much.
Hey people! Any update on this bug?
Hey people! Any update on this bug?
Unfortunately not, I've recently installed the package in another environment and had to do the manual fix again. It just takes a second though :)