core.utils.backward_compatibility.torch_available_devices
core.utils.backward_compatibility.torch_available_devices()Returns a list of all available PyTorch devices, ordered: cuda, mps, hip, cpu Note: ‘meta’ is not included from the returned list, even if supported.
Returns
| Name | Type | Description |
|---|---|---|
| List of available device identifiers |