This commit is contained in:
Niko00 2026-05-12 16:21:59 +07:00 committed by GitHub
commit 199733cc3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,6 +181,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():