From 4eb4e979aeb1de4fc007b114009713e1d9e305d9 Mon Sep 17 00:00:00 2001 From: Laughing <61612323+Laughing-q@users.noreply.github.com> Date: Fri, 20 Sep 2024 17:27:20 +0800 Subject: [PATCH] Remove extra `get_cpu_info` return (#16382) --- ultralytics/utils/torch_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ultralytics/utils/torch_utils.py b/ultralytics/utils/torch_utils.py index 824e1e82f0..a39969299c 100644 --- a/ultralytics/utils/torch_utils.py +++ b/ultralytics/utils/torch_utils.py @@ -122,8 +122,6 @@ def get_cpu_info(): PERSISTENT_CACHE["cpu_info"] = string.replace("(R)", "").replace("CPU ", "").replace("@ ", "") return PERSISTENT_CACHE.get("cpu_info", "unknown") - return "unknown" - def select_device(device="", batch=0, newline=False, verbose=True): """