torch.mtia
The MTIA backend is implemented out of the tree, only interfaces are defined here.
This package enables an interface for accessing MTIA backend in python
Context-manager that selects a given stream. | |
The MTIA backend is implemented out of the tree, only interfaces are 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 a bool indicating if the current MTIA device supports dtype bfloat16. |
Return whether PyTorch's MTIA state has been initialized. |
Return a dictionary of MTIA memory allocator statistics for a given device. |
Return capability of a given device as a tuple of (major version, minor version). |
Return a dictionary of MTIA device properties |
Empty the MTIA device cache. |
Enable/Disable the memory profiler on MTIA allocator |
Return a dictionary of MTIA memory allocator history |
Attach an out-of-memory observer to MTIA memory allocator |
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 of the specified MTIA device. |
Returns the random number generator state of the specified MTIA device as a ByteTensor. |
Sets the random number generator state of all devices. |
Returns a list of ByteTensor representing the random number states of all devices. |
Sets the seed for generating random numbers for the current MTIA device. |
Sets the seed for generating random numbers on all MTIA devices. |
Sets the seed for generating random numbers to a random number for the current MTIA device. |
Sets the seed for generating random numbers to a random number on all MTIA devices. |
Returns the current random seed of the current MTIA device. |