Remove psutil
This commit is contained in:
parent
38616b1c4f
commit
394d4465b0
2 changed files with 1 additions and 3 deletions
|
|
@ -2,7 +2,6 @@ from math import ceil
|
|||
from typing import Any, Callable, Iterable, List, Optional
|
||||
|
||||
import multiprocess as mp
|
||||
import psutil
|
||||
from tqdm.cli import tqdm
|
||||
|
||||
from .logger import get_logger
|
||||
|
|
@ -18,7 +17,7 @@ def parallel_map(
|
|||
disable_progress: bool = False,
|
||||
) -> List[Any]:
|
||||
if concurrency is None:
|
||||
concurrency = psutil.cpu_count()
|
||||
concurrency = mp.cpu_count()
|
||||
|
||||
assert concurrency > 0
|
||||
assert chunk_size is None or chunk_size > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue