We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba90b7 commit 711cf6cCopy full SHA for 711cf6c
exir/serde/serialize.py
@@ -630,6 +630,10 @@ def deserialize(
630
) -> exir.ExportedProgram:
631
exported_program_str = exported_program_bytes.decode("utf-8")
632
exported_program_dict = json.loads(exported_program_str)
633
+ # Executorch tests save exported program on disk when we haven't
634
+ # provided any compatibility guarantees.
635
+ if "module_call_graph" not in exported_program_dict["graph_module"]:
636
+ exported_program_dict["graph_module"]["module_call_graph"] = []
637
serialized_exported_program = export_serialize._dict_to_dataclass(
638
schema.ExportedProgram, exported_program_dict
639
)
0 commit comments