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

Pytorch dependency #9

Open
jamieOverbeek opened this issue Oct 18, 2022 · 1 comment
Open

Pytorch dependency #9

jamieOverbeek opened this issue Oct 18, 2022 · 1 comment

Comments

@jamieOverbeek
Copy link

After installing candle in a fresh conda environment with 'pip install git+https://github.com/ECP-CANDLE/candle_lib@develop', I try to import candle and get the following error:

import candle
Traceback (most recent call last):
File "", line 1, in
File "/homes/joverbeek/.conda/envs/candle_env/lib/python3.7/site-packages/candle/init.py", line 165, in
from .ckpt_pytorch_utils import CandleCkptPyTorch
File "/homes/joverbeek/.conda/envs/candle_env/lib/python3.7/site-packages/candle/ckpt_pytorch_utils.py", line 11, in
import torch
ModuleNotFoundError: No module named 'torch'

@jmohdyusof
Copy link
Collaborator

There was a logic error where a pytorch function was loaded outside the pytorch guard. It should be fixed as of a recent push

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

2 participants