SIGN IN SIGN UP

Serialize constant Data outside of flatbuffer (#1542)

Summary:
Pull Request resolved: https://github.com/pytorch/executorch/pull/1542

We introduce the `serialize_xnnpack_binary` method which serializees the constant data outside of the flatbuffer. It leverages the xnnheader introduced in the previous diff to store offsets and sizes for both the flatbuffer payload as well as the constant data payload.

Note here we have not yet switched the delegate to use the new `serialize_xnnpack_binary` function as this new serialization also requires changes on the runtime side. This will be tested in the diff which follows.

Reviewed By: digantdesai

Differential Revision: D52498367

fbshipit-source-id: d90a246630653167ec479913f1862851ab8ace82
M
Max Ren committed
99d0ea1db63fbb9a7a836ab4ac3b68d211fe0b27
Parent: 4361d62
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 1/12/2024, 1:41:15 AM