mlrl.common packageΒΆ

This module provides common functionality for rule learning algorithms.

mlrl.common.get_gpu_devices() List[str]ΒΆ

Returns the names of all supported GPUs available on the machine.

Returns:

A list that contains the names of all supported GPUs

mlrl.common.get_num_cpu_cores() intΒΆ

Returns the number of CPU cores available on the machine, regardless of whether multi-threading support is enabled or not.

Returns:

The number of CPU cores available on the machine

mlrl.common.is_gpu_available() boolΒΆ

Returns whether any supported GPUs are available on the machine or not.

Returns:

True, if at least one supported GPU is available, False otherwise

mlrl.common.is_gpu_support_enabled() boolΒΆ

Returns whether multi-threading support was enabled at compile-time or not.

Returns:

True, if the GPU support is enabled, False otherwise

mlrl.common.is_multi_threading_support_enabled() boolΒΆ

Returns whether multi-threading support was enabled at compile-time or not.

Returns:

True, if the multi-threading support is enabled, False otherwise

SubpackagesΒΆ

SubmodulesΒΆ