[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-04-12 21:23:01 +00:00
commit b91f47c3b7

View file

@ -500,8 +500,11 @@ def _ensure_rocm_torch_windows() -> None:
# call (or a prior setup.ps1 / install.ps1 run) already succeeded.
try:
_probe = subprocess.run(
[sys.executable, "-c",
"import torch; print(getattr(torch.version,'hip','') or '')"],
[
sys.executable,
"-c",
"import torch; print(getattr(torch.version,'hip','') or '')",
],
stdout = subprocess.PIPE,
stderr = subprocess.DEVNULL,
timeout = 30,