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

Method register

tfjs-core/src/serialization.ts:154–157  ·  view source on GitHub ↗

* Registers the class as serializable.

(cls: SerializableConstructor<T>)

Source from the content-addressed store, hash-verified

152 * Registers the class as serializable.
153 */
154 static register<T extends Serializable>(cls: SerializableConstructor<T>) {
155 SerializationMap.getMap().classNameMap[cls.className] =
156 [cls, cls.fromConfig];
157 }
158}
159
160/**

Callers 2

wdio.conf.jsFile · 0.80
registerClassFunction · 0.80

Calls 1

getMapMethod · 0.80

Tested by

no test coverage detected