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

Function deserialize_from_etdump_flatcc

devtools/etdump/serialize.py:95–108  ·  view source on GitHub ↗

Given an etdump binary blob (constructed using the FlatCC schema) this function will deserialize it and return the FlatCC python object representation of etdump. Args: data: Serialized etdump binary blob. Returns: Deserialized ETDump python object.

(
    data: bytes, size_prefixed: bool = True
)

Source from the content-addressed store, hash-verified

93
94
95def deserialize_from_etdump_flatcc(
96 data: bytes, size_prefixed: bool = True
97) -> ETDumpFlatCC:
98 """
99 Given an etdump binary blob (constructed using the FlatCC schema) this function will deserialize
100 it and return the FlatCC python object representation of etdump.
101 Args:
102 data: Serialized etdump binary blob.
103 Returns:
104 Deserialized ETDump python object.
105 """
106 return _deserialize_from_json_to_etdump_flatcc(
107 _convert_from_flatcc(data, size_prefixed)
108 )

Callers 3

gen_etdump_objectFunction · 0.90
test_serializeMethod · 0.90

Tested by 2

test_serializeMethod · 0.72