You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code uses the alias th to refer to torch in utils.eval_utils.py, specifically in the aggregate() function, but torch is not imported in the script.
Reproducing the error
Train the model with config["aggregation"] set to either one of ['concat', 'max', 'min'].
Observe the error:
Error: name 'th' is not defined
Suggested Fix
Add the following line at the beginning of the script: import torch as th
The text was updated successfully, but these errors were encountered:
sintijas
changed the title
Bug: Unresolved th used before importing torch as th in utils.eval_utils.py
Alias th used without importing torch in utils.eval_utils.py
Jan 24, 2025
Description
The code uses the alias th to refer to torch in utils.eval_utils.py, specifically in the aggregate() function, but torch is not imported in the script.
Reproducing the error
Train the model with config["aggregation"] set to either one of ['concat', 'max', 'min'].
Observe the error:
Error: name 'th' is not defined
Suggested Fix
Add the following line at the beginning of the script:
import torch as th
The text was updated successfully, but these errors were encountered: