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
Remove the sources containing the models from the TFLM static lib. #47018
Remove the sources containing the models from the TFLM static lib. #47018
Conversation
Thanks for contributing to TensorFlow Lite Micro. To keep this process moving along, we'd like to make sure that you have completed the items on this list:
We would like to have a discussion on the Github issue first to determine the best path forward, and then proceed to the PR review. |
These sources are only needed for specific tests and are now explicitly specified as part of creating a test target. From this change onwards, we will explicitly create test targets for tests that depend on sources outside of libtensorflow-microlite.a. This avoids putting unnecessary files into MICROLITE_CC_SRCS. Manually verified that the following command does not error out: ``` make -f tensorflow/lite/micro/tools/make/Makefile generate_keyword_benchmark_make_project && cd tensorflow/lite/micro/tools/make/gen/linux_x86_64_default/prj/keyword_benchmark/make/ && make -j8 ``` Fixes tensorflow#46860
ef9a446
to
ba4a1db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a much better way of doing things, makes a lot more sense than linking in the model data for every build when it is only needed for a specific test.
Also appreciate the added comments to the Makefile. Anything that makes that thing more understandable... :)
These sources are only needed for specific tests and are now explicitly specified as part of creating a test target.
From this change onwards, we will explicitly create test targets for tests that depend on sources outside of libtensorflow-microlite.a. This avoids putting unnecessary files into MICROLITE_CC_SRCS.
Manually verified that the following command does not error out:
Fixes #46860