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

Method _deserialize_from_node

exir/serde/serialize.py:510–519  ·  view source on GitHub ↗

Recursively deserialize from_node metadata from JSON data.

(self, from_node_data: Optional[List[Dict[str, Any]]])

Source from the content-addressed store, hash-verified

508 return res
509
510 def _deserialize_from_node(self, from_node_data: Optional[List[Dict[str, Any]]]) -> Optional[List[NodeSource]]:
511 """
512 Recursively deserialize from_node metadata from JSON data.
513 """
514 if from_node_data is None:
515 return None
516
517 assert isinstance(from_node_data, list)
518
519 return [NodeSource._from_dict(fn_dict) for fn_dict in from_node_data]
520
521 # pyre-ignore
522 def deserialize_alloc_inputs(self, serialized_inputs: List[schema.NamedArgument]):

Callers 1

deserialize_metadataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected