From 8bfc480486d6a6cf01e087e43d0d6e36ea695b5e Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Mon, 23 Sep 2024 20:24:42 +0800 Subject: [PATCH] fix --- swanlab/data/run/main.py | 2 -- swanlab/data/run/system/info.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/swanlab/data/run/main.py b/swanlab/data/run/main.py index a14a1bba..4b2da4ea 100644 --- a/swanlab/data/run/main.py +++ b/swanlab/data/run/main.py @@ -23,10 +23,8 @@ from . import namer as N import random - MAX_LIST_LENGTH = 108 - class SwanLabRunState(Enum): """SwanLabRunState is an enumeration class that represents the state of the experiment. We Recommend that you use this enumeration class to represent the state of the experiment. diff --git a/swanlab/data/run/system/info.py b/swanlab/data/run/system/info.py index 775a0b1a..5d0932d4 100644 --- a/swanlab/data/run/system/info.py +++ b/swanlab/data/run/system/info.py @@ -109,7 +109,7 @@ def get_cpu_brand_linux(): if "Model name:" in line: cpu_brand = line.split(":")[1].strip() return cpu_brand - return "无法获取 CPU 品牌" + return None except Exception as e: return None