IsAvailableΒΆ

Check if the accelerator backend is available.

PyTorch

API: torch.cuda.is_available
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro 'len(jax.devices('gpu')) > 0'

TensorFlow

API: β€”
Strategy: Macro 'len(tf.config.list_physical_devices('GPU')) > 0'

Apple MLX

API: mlx.core.is_available
Strategy: Direct Mapping