Skip to content
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

alignn.py, line 294, g, lg, lat = g #175

Open
02pdbq20 opened this issue Jan 3, 2025 · 1 comment
Open

alignn.py, line 294, g, lg, lat = g #175

02pdbq20 opened this issue Jan 3, 2025 · 1 comment

Comments

@02pdbq20
Copy link

02pdbq20 commented Jan 3, 2025

Error message:
Traceback (most recent call last):
File "c:\Users\12732\Desktop\python\ml\alignn-2024.10.30\temp\predicate.py", line 27, in
g, lg ,lat = Graph.atom_dgl_multigraph(
edata_schemes={'h': Scheme(shape=(), dtype=torch.float32)}))
Traceback (most recent call last):
File "c:\Users\12732\Desktop\python\ml\alignn-2024.10.30\temp\predicate.py", line 31, in
model([g.to(device), lg.to(device)])
File "C:\xuexi\anaconda3\envs\sdsd_torch\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\xuexi\anaconda3\envs\sdsd_torch\lib\site-packages\alignn\models\alignn.py", line 294, in forward
g, lg, lat = g
ValueError: not enough values to unpack (expected 3, got 2)

modified:
File "C:\xuexi\anaconda3\envs\sdsd_torch\lib\site-packages\alignn\models\alignn.py", line 294, in forward
g, lg = g

Can operate normally

@02pdbq20
Copy link
Author

02pdbq20 commented Jan 5, 2025

g, lg, *_ = g might be a better choice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant