Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: linux cpu brand return #714

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions swanlab/data/run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion swanlab/data/run/system/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down