From d159346572e1de07c7d3bdc98bcbed866f61dd00 Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 16 Feb 2023 13:23:07 +0000 Subject: [PATCH] oops --- tortoise/utils/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tortoise/utils/device.py b/tortoise/utils/device.py index 9c35962..3ab52e2 100755 --- a/tortoise/utils/device.py +++ b/tortoise/utils/device.py @@ -18,7 +18,7 @@ def set_device_name(name): def get_device_name(): global DEVICE_OVERRIDE - if DEVICE_OVERRIDE is not None: + if DEVICE_OVERRIDE is not None and DEVICE_OVERRIDE != "": return DEVICE_OVERRIDE name = 'cpu'