pytorch_geometric_temporal icon indicating copy to clipboard operation
pytorch_geometric_temporal copied to clipboard

Wrong import: torch_geometric.utils.to_dense_adj

Open ber0i opened this issue 11 months ago • 7 comments

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!

ber0i avatar Mar 17 '24 12:03 ber0i

Really hoping the above can be fixed, in order to be able to use torch geometric temporal

anna-inf-met avatar Apr 04 '24 17:04 anna-inf-met

@anna-inf-met You can just change your local tsagcn.py as suggested by @ber0i .

Ziqi-Li avatar Apr 05 '24 18:04 Ziqi-Li

@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 avatar May 02 '24 09:05 louiswng

@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. :)

ber0i avatar May 02 '24 13:05 ber0i

@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.

louiswng avatar May 02 '24 13:05 louiswng

Hey people! Any update on this bug?

christoschr97 avatar Jul 08 '24 18:07 christoschr97

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 :)

ber0i avatar Jul 09 '24 07:07 ber0i