osl_dynamics.utils.devices.xla_supported#

osl_dynamics.utils.devices.xla_supported()#

Whether TensorFlow supports XLA compilation on the available devices.

XLA is not supported on macOS GPUs (tensorflow-metal). This follows Keras’ model_supports_jit.

Note, this initializes the devices, so gpu_growth() and select_gpu() must be called before it.

Returns:
supportedbool

Whether XLA is supported.