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

Method serialize

exir/_serialize/data_serializer.py:51–65  ·  view source on GitHub ↗

Serializes a list of bytes emitted by ExecuTorch into a binary blob. Args: data: buffers and corresponding metadata used for serialization. Returns: A binary blob that contains the serialized data.

(
        self,
        data: DataPayload,
    )

Source from the content-addressed store, hash-verified

49
50 @abstractmethod
51 def serialize(
52 self,
53 data: DataPayload,
54 ) -> Cord:
55 """
56 Serializes a list of bytes emitted by ExecuTorch into a binary blob.
57
58 Args:
59 data: buffers and corresponding metadata used for serialization.
60
61
62 Returns:
63 A binary blob that contains the serialized data.
64 """
65 raise NotImplementedError("serialize_data")
66
67 @abstractmethod
68 def deserialize(self, blob: Cord) -> DataPayload:

Callers 1

serialize_for_executorchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected