Skip to content

What is the codegen really done at the Executorch flow? #1252

@kris-himax

Description

@kris-himax

Hi,

Although I study the https://pytorch.org/executorch/stable/concepts.html#codegen about codegen part, I do not understand very well about this part.
Screenshot from 2023-11-21 16-38-38

Above the concepts map, after I export the model.pte file which is the binary file.
Can I directly select the kernel op to run the model with Executorch Runtime library ?

And there is another branch of model.pte file which do the codegen to gen the Kernel Registration Library. I do not understand very well about this part.

My question is that if I can run with model.pte file with kernel op run time library, why need to codegen again?
Or what is the codegen output at real flow? Is it a c code about the graph of the model with ops and the weight?

Metadata

Metadata

Assignees

Labels

module: kernelsIssues related to kernel libraries and utilities, and code under kernels/need-user-inputThe issue needs more information from the reporter before moving forwardtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions