Skip to content

[Request Impl] Apply Segment Serialization in Bundled Program #9771

Open
@Gasoonjia

Description

@Gasoonjia

🚀 The feature, motivation and pitch

BundledProgram is a primary way for users to bundle representative input and (optional) its expected outputs with serialized ExecuTorch program (.pte file). It is a critical way to run representative input on device in a unified way.

However we realize the serialization is pretty slow nowadays. The key reason is we try to reserialize the pte file again into bundled program, which has been serialized and is unnecessary here.

To make the pte data a part of serialized bundled program, while not reserialize it, we can use the new introduced NameData to handle that, which makes inserialized data as separate data blobs append after serialized flabuffer data.

#8187 here's the design doc for NameDataBlob, and

def serialize_pte_binary(
is the code pointer for pte serialization, in which include the NameData serialization.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomersmodule: devtoolsIssues related to developer tools and code under devtools/

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions