elasticai.creator.ir.deserializer#

Module Contents#

Classes#

IrDeserializer

IrDeserializerLegacy

Deserializes to the legacy format.

API#

class elasticai.creator.ir.deserializer.IrDeserializer(factory: elasticai.creator.ir.factories.IrFactory[N, E, G])[source]#

Initialization

deserialize_graph(data: dict[str, Any]) G[source]#
class elasticai.creator.ir.deserializer.IrDeserializerLegacy(factory: elasticai.creator.ir.factories.IrFactory[N, E, G])[source]#

Deserializes to the legacy format.

The only difference is that attributes are not stored in a dedicated field but at the top-level dict. Use this if you need to load an IR from data that was serialized using the IrData data types.

Initialization

deserialize_graph(data: dict[str, Any]) G[source]#