Default TORCH_NUM_THREADS=1 so 14-20 workers do not each spawn a 28-thread BLAS pool.
16 lines
390 B
Python
16 lines
390 B
Python
from config import Config, _parse_cameras
|
|
|
|
|
|
def test_parse_cameras_list():
|
|
assert _parse_cameras("1,5") == ["1", "5"]
|
|
assert _parse_cameras("all") == ["all"]
|
|
assert _parse_cameras("1-3") == ["1", "2", "3"]
|
|
|
|
|
|
def test_default_beamform_mode_auto():
|
|
assert Config().beamform_mode == "auto"
|
|
|
|
|
|
def test_torch_num_threads_default_one():
|
|
assert Config().torch_num_threads == 1
|