Skip to content

Commit 60b6903

Browse files
committed
remove the error message when PT is not preinstalled
Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 32831df commit 60b6903

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/read_env.py

-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ def get_argument_from_env() -> Tuple[str, list, list, dict, str]:
104104

105105
if os.environ.get("DP_ENABLE_PYTORCH", "1") == "1":
106106
pt_install_dir, _ = find_pytorch()
107-
if pt_install_dir is None:
108-
raise RuntimeError("Cannot find installed PyTorch.")
109107
cmake_args.extend(
110108
[
111109
"-DENABLE_PYTORCH=ON",

0 commit comments

Comments
 (0)