neural_compressor.ux.utils.hw_info

UX server HW info module.

Module Contents

Classes

HWInfo

Class responsible for gathering information about platform hardware.

Functions

get_number_of_sockets(→ int)

Get number of sockets in platform.

get_distribution(→ str)

Return system distibution.

get_bios_version(→ str)

Return bios version.

is_turbo_boost_enabled(→ Union[str, bool])

Check if turbo boost is enabled.

get_kernel_version(→ str)

Return kernel version.

get_framework_info(→ str)

Check framework version.

get_framework_dependency_info(→ Dict[str, Any])

Return framework subdependencies version.

class neural_compressor.ux.utils.hw_info.HWInfo[source]

Class responsible for gathering information about platform hardware.

neural_compressor.ux.utils.hw_info.get_number_of_sockets() int[source]

Get number of sockets in platform.

neural_compressor.ux.utils.hw_info.get_distribution() str[source]

Return system distibution.

Returns:

distribution name

Return type:

str

neural_compressor.ux.utils.hw_info.get_bios_version() str[source]

Return bios version.

neural_compressor.ux.utils.hw_info.is_turbo_boost_enabled() str | bool[source]

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[source]

Return kernel version.

neural_compressor.ux.utils.hw_info.get_framework_info(framework_name: str) str[source]

Check framework version.

Return version if enabled, n/a if disabled.

neural_compressor.ux.utils.hw_info.get_framework_dependency_info() Dict[str, Any][source]

Return framework subdependencies version.