torch.mps¶
This package enables an interface for accessing MPS backend in python
Waits for all kernels in all streams on a MPS device to complete. |
|
Returns the random number generator state as a ByteTensor. |
|
Sets the random number generator state. |
|
Sets the seed for generating random numbers. |
|
Sets the seed for generating random numbers to a random number. |
|
Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU applications. |
|
Set memory fraction for limiting process's memory allocation on MPS device. |
|
Returns the current GPU memory occupied by tensors in bytes. |
|
Returns total GPU memory allocated by Metal driver for the process in bytes. |