Skip to content

Commit

Permalink
fix usage without pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao committed Nov 17, 2023
1 parent 4fe8d26 commit 00ea83a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions depyf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"Please use the nightly version of PyTorch to enable bytecode hooks.\n"
"PyTorch nightly can be installed by: `conda install pytorch-nightly::pytorch torchvision torchaudio -c pytorch-nightly`"
))

from depyf.explain.enhance_logging import install, uninstall
from depyf.explain.enable_debugging import prepare_debug, debug
except ImportError:
pass

from depyf.explain.enhance_logging import install, uninstall
from depyf.explain.enable_debugging import prepare_debug, debug

import os

__version__ = open(f"{os.path.dirname(__file__)}/VERSION.txt").read().strip()
Expand Down

0 comments on commit 00ea83a

Please sign in to comment.