neural_compressor.ux.utils.hw_info¶
UX server HW info module.
Module Contents¶
Classes¶
Class responsible for gathering information about platform hardware. |
Functions¶
|
Get number of sockets in platform. |
|
Return system distibution. |
|
Return bios version. |
|
Check if turbo boost is enabled. |
|
Return kernel version. |
|
Check framework version. |
|
Return framework subdependencies version. |
- class neural_compressor.ux.utils.hw_info.HWInfo¶
Bases:
neural_compressor.ux.utils.json_serializer.JsonSerializerClass responsible for gathering information about platform hardware.
- serialize(serialization_type: str = 'default') Dict[str, Any]¶
Serialize class to dict.
- initialize() None¶
Set class variables.
- neural_compressor.ux.utils.hw_info.get_number_of_sockets() int¶
Get number of sockets in platform.
- neural_compressor.ux.utils.hw_info.get_distribution() str¶
Return system distibution.
- Returns:
distribution name
- Return type:
str
- neural_compressor.ux.utils.hw_info.get_bios_version() str¶
Return bios version.
- neural_compressor.ux.utils.hw_info.is_turbo_boost_enabled() str | bool¶
Check if turbo boost is enabled.
Return True if enabled, False if disabled, None if cannot collect info.
- neural_compressor.ux.utils.hw_info.get_kernel_version() str¶
Return kernel version.
- neural_compressor.ux.utils.hw_info.get_framework_info(framework_name: str) str¶
Check framework version.
Return version if enabled, n/a if disabled.
- neural_compressor.ux.utils.hw_info.get_framework_dependency_info() Dict[str, Any]¶
Return framework subdependencies version.