The backend factory function. When called, it should return a backend instance, or a promise of an instance.
Optional priority: numberThe priority of the backend (higher = more important). In case multiple backends are registered, the priority is used to find the best backend. Defaults to 1.
False if there is already a registered backend under this name, true if not.
Generated using TypeDoc
Registers a global backend. The registration should happen when importing a module file (e.g. when importing
backend_webgl.ts), and is used for modular builds (e.g. custom tfjs bundle with only webgl support).