Merge 6ff2489510 into c9602625e4
This commit is contained in:
commit
025bb42571
|
|
@ -188,6 +188,8 @@ def is_wsl():
|
||||||
return True
|
return True
|
||||||
elif version.endswith("microsoft-standard-WSL2"):
|
elif version.endswith("microsoft-standard-WSL2"):
|
||||||
return True
|
return True
|
||||||
|
if os.environ.get("WSL_DISTRO_NAME"):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_torch_device():
|
def get_torch_device():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue