MCPcopy Create free account
hub / github.com/tensorflow/tfjs / unregisterGradient

Function unregisterGradient

tfjs-core/src/kernel_registry.ts:182–188  ·  view source on GitHub ↗
(kernelName: string)

Source from the content-addressed store, hash-verified

180
181/** Removes the registered gradient from the global registry. */
182export function unregisterGradient(kernelName: string): void {
183 if (!gradRegistry.has(kernelName)) {
184 throw new Error(
185 `The gradient '${kernelName}' for backend is not registered`);
186 }
187 gradRegistry.delete(kernelName);
188}
189
190/**
191 * Finds kernels that have already been registered to a backend and re-registers

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…