Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
930
def
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_ram
Function · 0.85
__init__
Method · 0.85
get_stats
Method · 0.85
build_cpu_memory_monitor
Function · 0.85
_compute_num_cpu_blocks
Method · 0.85
requests.py
File · 0.85
get_device_and_memory_breakdown
Function · 0.85
Calls
1
_is_package_available
Function · 0.85
Tested by
4
require_large_cpu_ram
Function · 0.68
__init__
Method · 0.68
get_stats
Method · 0.68
build_cpu_memory_monitor
Function · 0.68