torch.mtia¶
The MTIA backend is implemented out of the tree, only interfaces are be defined here.
This package enables an interface for accessing MTIA backend in python
Context-manager that selects a given stream. |
|
Return the index of a currently selected device. |
|
Return the currently selected |
|
Return the default |
|
Return the number of MTIA devices available. |
|
Return true if MTIA device is available |
|
Return whether PyTorch's MTIA state has been initialized. |
|
Return a dictionary of MTIA memory allocator statistics for a given device. |
|
Set the current device. |
|
Set the current stream.This is a wrapper API to set the stream. |
|
Wrap around the Context-manager StreamContext that selects a given stream. |
|
Waits for all jobs in all streams on a MTIA device to complete. |
|
Context-manager that changes the selected device. |
|
Sets the random number generator state. |
|
Returns the random number generator state as a ByteTensor. |
|