uarray.set_global_backend(backend, coerce=False, only=False)[source]

This utility method replaces the default backend for permanent use. It will be tried in the list of backends automatically, unless the only flag is set on a backend. This will be the first tried backend outside the set_backend context manager.

Note that this method is not thread-safe.


We caution library authors against using this function in their code. We do not support this use-case. This function is meant to be used only by users themselves, or by a reference implementation, if one exists.


backend – The backend to register.

See also


A context manager that allows setting of backends.


A context manager that allows skipping of backends.