The class to be registered. It must have a public static member
called className defined and the value must be a non-empty string.
Optional pkg: stringThe pakcage name that this class belongs to. This used to define
the key in GlobalCustomObject. If not defined, it defaults to Custom.
Optional name: stringThe name that user specified. It defaults to the actual name of
the class as specified by its static className property.
Generated using TypeDoc
Register a class with the serialization map of TensorFlow.js.
This is often used for registering custom Layers, so they can be serialized and deserialized.
Example 1. Register the class without package name and specified name.
Example 2. Register the class with package name: "Package" and specified name: "MyLayer".
Example 3. Register the class with specified name: "MyLayer".
Example 4. Register the class with specified package name: "Package".