HPUAccelerator
class pytorch_lightning.accelerators. HPUAccelerator [source]
Bases: pytorch_lightning.accelerators.accelerator.Accelerator
Accelerator for HPU devices.
static auto_device_count ( ) [source]
Get the devices when set to auto.
Return type
int
get_device_stats ( device ) [source]
HPU device stats aren’t supported yet.
Return type
Dict
[str
, Any
]
static get_parallel_devices ( devices ) [source]
Gets parallel devices for the Accelerator.
Return type
List
[device
]
static is_available ( ) [source]
Detect if the hardware is available.
Return type
bool
static parse_devices ( devices ) [source]
Accelerator device parsing logic.
Return type
Optional
[int
]
setup_environment ( root_device ) [source]
Raises
MisconfigurationException – If the selected device is not HPU.
Return type
None
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. Read PyTorch Lightning's Privacy Policy .