MCPcopy Create free account
hub / github.com/pytorch/executorch / serialize

Method serialize

exir/serde/export_serialize.py:1357–1364  ·  view source on GitHub ↗
(self, graph_module: torch.fx.GraphModule)

Source from the content-addressed store, hash-verified

1355 )
1356
1357 def serialize(self, graph_module: torch.fx.GraphModule) -> GraphModule:
1358 graph = self.serialize_graph(graph_module)
1359
1360 return GraphModule(
1361 graph=graph,
1362 signature=self.serialize_signature(self.graph_signature),
1363 module_call_graph=self.serialize_module_call_graph(self.module_call_graph),
1364 )
1365
1366
1367class ExportedProgramSerializer:

Callers 3

serializeMethod · 0.95
serializeMethod · 0.95
serializeFunction · 0.45

Calls 4

serialize_graphMethod · 0.95
serialize_signatureMethod · 0.95
GraphModuleClass · 0.85

Tested by

no test coverage detected