torch.accelerator¶
This package introduces support for the current accelerator in python.
Return the number of current accelerator available. |
|
Check if there is an available accelerator. |
|
Return the device of the current accelerator. |
|
Set the current device index to a given device. |
|
Return the index of a currently selected device for the current accelerator. |
|
Set the current stream to a given stream. |
|
Return the currently selected stream for a given device. |
|
Wait for all kernels in all streams on the given device to complete. |