Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create codegen_preprocessor #2212

Closed
wants to merge 4 commits into from
Closed

Conversation

rascani
Copy link
Contributor

@rascani rascani commented Sep 7, 2023

This PR creates the initial scaffolding for the codegen preprocessor. The preprocessor is a target-specific binary that will take a model, load it into a TFLM Interpreter, perform the Init & Prepare stages, then serialize the resulting data structures to an output file. Currently, all this binary does is load the model file and write an output file that simply contains the source model path in it. This will be expanded as we expose the data.

BUG=b/295076056

This PR creates the initial scaffolding for the codegen preprocessor.
The preprocessor is a target-specific binary that will take a model,
load it into a TFLM Interpreter, perform the Init & Prepare stages, then
serialize the resulting data structures to an output file. Currently,
all this binary does is load the model file and write an output file
that simply contains the source model path in it. This will be expanded
as we expose the data.

BUG=b/295076056
@rascani rascani added the ci:run label Sep 7, 2023
@TFLM-bot TFLM-bot removed the ci:run label Sep 7, 2023
The codegen process is a multi-step process that requires compiling,
executing code under simulation, and executing python scripts. To
simplify this workflow, this commit adds Make helper functions for
generating inference source code from a model and creating a binary with
it.

It also updates the hello world example to use these helpers and adds an
update script for keeping the checked in generated source in sync.
@rascani rascani added the ci:run label Sep 8, 2023
@TFLM-bot TFLM-bot removed the ci:run label Sep 9, 2023
@rascani rascani added the ci:run label Sep 11, 2023
@TFLM-bot TFLM-bot removed the ci:run label Sep 11, 2023
@rascani
Copy link
Contributor Author

rascani commented Sep 14, 2023

Closing in favor of #2219

@rascani rascani closed this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants