Skip to main content

GetNormalizedAcceleratorDevice

Returns the normalized name for the given accelerator device, mapping to the node label used for provisioning. If the device is not configured, it falls back to the original device name.

def GetNormalizedAcceleratorDevice(
device: string
) - > string

Returns the normalized name for the given device. This should map to the node label that the corresponding nodes are provisioned with. Falls back to the original device name if the device is not configured.

Parameters

NameTypeDescription
devicestringThe name of the accelerator device to normalize.

Returns

TypeDescription
stringThe normalized accelerator device name, or the original device name if no normalization is configured.