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

Function getRegisteredName

tfjs-core/src/serialization.ts:275–282  ·  view source on GitHub ↗
(
    cls: SerializableConstructor<T>)

Source from the content-addressed store, hash-verified

273 * @returns registered name or class name.
274 */
275export function getRegisteredName<T extends Serializable>(
276 cls: SerializableConstructor<T>) {
277 if (GLOBAL_CUSTOM_NAMES.has(cls)) {
278 return GLOBAL_CUSTOM_NAMES.get(cls);
279 } else {
280 return cls.className;
281 }
282}

Callers

nothing calls this directly

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…