mcframework.backends.is_mps_available#

mcframework.backends.is_mps_available() bool[source]#

Check if MPS (Metal Performance Shaders) is available.

Returns:
bool

True if MPS is available and PyTorch was built with MPS support.

Examples

>>> if is_mps_available():
...     backend = TorchMPSBackend()