Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: xin3he <[email protected]>
  • Loading branch information
xin3he committed Jul 8, 2024
1 parent 7f3aff5 commit eeb56f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions neural_compressor/common/base_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ class Options:

def __init__(self, random_seed=1978, workspace=DEFAULT_WORKSPACE, resume_from=None, tensorboard=False):
"""Init an Option object."""
os.makedirs(self._workspace, exist_ok=True)
self.random_seed = random_seed
self.workspace = workspace
self.resume_from = resume_from
Expand Down
1 change: 0 additions & 1 deletion test/3x/common/test_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def test_set_tensorboard(self):
class TestCPUInfo(unittest.TestCase):
def test_cpu_info(self):
cpu_info = CpuInfo()
assert cpu_info.cores_per_socket > 0, "CPU count should be greater than 0"
assert isinstance(cpu_info.bf16, bool), "bf16 should be a boolean"
assert isinstance(cpu_info.vnni, bool), "avx512 should be a boolean"

Expand Down

0 comments on commit eeb56f6

Please sign in to comment.