Closed isZumpo closed 5 months ago
The recent modifications involve integrating additional Git commands into both the Dockerfile and Makefile. These commands are specially designed to set up a sparse checkout process for TensorFlow headers. This adjustment aims to streamline the download and retrieval stages, making them more efficient and less resource-intensive by focusing only on the necessary parts of the TensorFlow repository.
Files | Change Summary |
---|---|
Dockerfile, Makefile | Added Git commands for sparse checkout of TensorFlow headers |
🌟✨ In the land of code and byte,
Where Docker sails and Makefiles fight,
A rabbit hopped with glee tonight,
For TensorFlow's load grew light.
Sparse checkout, the wizards' might,
Made our builds both swift and right.
🚀🐰💫
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Rather than cloning the whole tensorflow repository, which is rather large, clone only the header files. Accomplished by utilizing sparse checkout feature.
During testing, cloning tensorflow like this was over 5 times faster than the old approach. It can be optimized further by limiting which folders to grab header files from too. However, currently I am not too familiar with how the header files are dependent on each-other, so I decided not to go for the extreme "tensorflow/lite/*/.h" pattern which I was able to build and run the application with, since some of the headers there had dependencies to tensorflow/core.
Summary by CodeRabbit