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,
)
| 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: |
no outgoing calls
no test coverage detected