osl_dynamics.utils.devices#

TensorFlow device settings.

gpu_growth() and select_gpu() must be called before TensorFlow initializes the devices, e.g. at the start of a script.

Functions#

gpu_growth()

Only allocate the amount of memory required on the GPU.

xla_supported()

Whether TensorFlow supports XLA compilation on the available devices.

select_gpu(gpu_numbers)

Allows the user to pick a GPU to use.

suppress_messages([level])

Suppress messages from TensorFlow.