This commit is contained in:
Niko00 2026-07-19 11:53:06 +08:00 committed by GitHub
commit 025bb42571
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ def is_wsl():
return True
elif version.endswith("microsoft-standard-WSL2"):
return True
if os.environ.get("WSL_DISTRO_NAME"):
return True
return False
def get_torch_device():