Skip to content

Commit

Permalink
remove the error message when PT is not preinstalled
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Jun 20, 2024
1 parent 32831df commit 60b6903
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/read_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ def get_argument_from_env() -> Tuple[str, list, list, dict, str]:

if os.environ.get("DP_ENABLE_PYTORCH", "1") == "1":
pt_install_dir, _ = find_pytorch()
if pt_install_dir is None:
raise RuntimeError("Cannot find installed PyTorch.")
cmake_args.extend(
[
"-DENABLE_PYTORCH=ON",
Expand Down

0 comments on commit 60b6903

Please sign in to comment.