clear_backends¶
-
uarray.
clear_backends
(domain, registered=True, globals=False)[source]¶ This utility method clears registered backends.
Warning
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.
Warning
Do NOT use this method inside a multimethod call, or the program is likely to crash.
- Parameters
domain (Optional[str]) – The domain for which to de-register backends.
None
means de-register for all domains.registered (bool) – Whether or not to clear registered backends. See
register_backend
.globals (bool) – Whether or not to clear global backends. See
set_global_backend
.
See also
register_backend()
Register a backend globally.
set_global_backend()
Set a global backend.