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

Function getClassName

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

* Return the class name for this class to use in serialization contexts. * * Generally speaking this will be the same thing that constructor.name * would have returned. However, the class name needs to be robust * against minification for serialization/deserialization to work properly.

()

Source from the content-addressed store, hash-verified

96 * class hierarchies and a non-leaf node is used for serialization purposes.
97 */
98 getClassName(): string {
99 return (this.constructor as SerializableConstructor<Serializable>)
100 .className;
101 }
102
103 /**
104 * Return all the non-weight state needed to serialize this object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…