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

Bases: neural_compressor.ux.utils.json_serializer.JsonSerializer

Class 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.