registry module

Full Documentation for hippynn.serializer.registry module. Click here for a summary page.

Node class registry and validation. Per-class reconstruction dispatch on the structure (read) side lives as a from_record classmethod on each SerializableNode subclass (e.g. AutoModule.from_record); ContextConverter.structure_node looks up the class via _ID_REGISTRY and calls cls.from_record(…) directly.

ensure_registry_consistency(raise_=False)[source]

Verify that _NODE_REGISTRY (class -> identifier) and _ID_REGISTRY (identifier -> class) are inverses of one another.

get_nodetype(node_cls)[source]
register_node_cls(cls)[source]