set_backend

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

A context manager that sets the preferred backend.

Parameters
  • backend – The backend to set.

  • coerce – Whether or not to coerce to a specific backend’s types. Implies only.

  • only – Whether or not this should be the last backend to try.

See also

skip_backend

A context manager that allows skipping of backends.

set_global_backend

Set a single, global backend for a domain.