Device
This class represents a specific hardware device configuration, including the device type, quantity, and optional partitioning. It serves as a data structure to define resource requirements for compute tasks, ensuring that device counts meet a minimum threshold.
Attributes
| Attribute | Type | Description |
|---|---|---|
| quantity | int | The number of devices of this type, which must be an integer of at least 1. |
| device_class | DeviceClass | The category or classification of the hardware device being defined. |
| device | `str | None` = null |
| partition | `str | None` = null |
Constructor
Signature
def Device(
quantity: int,
device_class: DeviceClass,
device: str | None = None,
partition: str | None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| quantity | int | The number of devices of this type. |
| device_class | DeviceClass | The classification category of the device. |
| device | `str | None` = None |
| partition | `str | None` = None |