MCPcopy
hub / github.com/tensorflow/tfjs / registerBackend

Function registerBackend

tfjs-core/src/globals.ts:358–362  ·  view source on GitHub ↗
(
    name: string, factory: () => KernelBackend | Promise<KernelBackend>,
    priority = 1)

Source from the content-addressed store, hash-verified

356 * @doc {heading: 'Backends'}
357 */
358export function registerBackend(
359 name: string, factory: () => KernelBackend | Promise<KernelBackend>,
360 priority = 1): boolean {
361 return ENGINE.registerBackend(name, factory, priority);
362}
363
364/**
365 * Gets the current backend. If no backends have been initialized, this will

Callers 8

base.tsFile · 0.90
base.tsFile · 0.90
image_test.tsFile · 0.90
base.tsFile · 0.90
base.tsFile · 0.90
index_test.tsFile · 0.90
engine_test.tsFile · 0.85

Calls 1

registerBackendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…