ml.utils.device.gpu
GPU device type.
The default floating point type can be configured with the environment variables:
USE_FP64
: Use FP64USE_FP32
: Use FP32USE_BF16
: Use BF16
- class ml.utils.device.gpu.gpu_device[source]
Bases:
base_device
Mixin to support single-GPU training.
- classmethod has_device() bool [source]
Detects whether or not the device is available.
- Returns:
If the device is available