MCPcopy
hub / github.com/huggingface/transformers / is_psutil_available

Function is_psutil_available

src/transformers/utils/import_utils.py:930–931  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

928
929@lru_cache
930def is_psutil_available() -> bool:
931 return _is_package_available("psutil")[0]
932
933
934@lru_cache

Callers 8

__init__Method · 0.85
require_large_cpu_ramFunction · 0.85
__init__Method · 0.85
get_statsMethod · 0.85
build_cpu_memory_monitorFunction · 0.85
requests.pyFile · 0.85

Calls 1

_is_package_availableFunction · 0.85

Tested by 4

require_large_cpu_ramFunction · 0.68
__init__Method · 0.68
get_statsMethod · 0.68
build_cpu_memory_monitorFunction · 0.68