public class LayerCodec<T extends AbstractFloat>
Versioned allowlist for sequential checkpoint operators. Unknown classes and subclasses are rejected rather than flattened to a different computation. No type name supplied by a file is resolved or instantiated reflectively.
descriptor = LayerCodec<Float>.encode(Dense<Float>(10))
| Modifier and Type | Member | Description |
|---|---|---|
| public static | boolean | Reads a JSON Boolean without accepting numeric or textual conversions. |
| public static | decode | Reconstructs a known operator without code execution or reflection. |
| public static | encode | Encodes exact built-in layer configuration, not its parameters. |
| public static | integer | Parses a canonical non-negative decimal string without floating conversion. |
| public static | keys | Checks exact keys, rejecting silently ignored configuration. |
| public static | number | Reads a JSON number, never a Boolean, null or a numeric string. |
| public static | outputShape | Computes output dimensions without allocating trainable parameters. |
| public static | parameterShapes | Expected parameter shapes, without parameter allocation. |
| public static | readShape | Decodes a bounded, positive, non-overflowing shape. |
| public static | shape | Encodes dimensions as exact decimal strings. |