scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersBackRef
set_global_backend(backend, coerce=False, only=False, *, try_last=False)

Note that this method is not thread-safe.

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, or by a reference implementation, if one exists.

Parameters

backend :

The backend to register.

coerce : bool

Whether to coerce input types when trying this backend.

only : bool

If True , no more backends will be tried if this fails. Implied by coerce=True .

try_last : bool

If True , the global backend is tried after registered backends.

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.

See Also

set_backend

A context manager that allows setting of backends.

skip_backend

A context manager that allows skipping of backends.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy._lib._uarray._backend.set_backend scipy._lib._uarray._backend.clear_backends scipy._lib._uarray._backend.skip_backend

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/_lib/_uarray/_backend.py#325
type: <class 'function'>
Commit: