The build patches are in the tags How to check out a build patch git clone --depth=20 git@github.com:ZenIDTeam/tensorflow.git git fetch --tags --depth=1 origin git checkout v2.12.0-custom-ops How to add a new build patch for tflite: fetch a TF tag from upstream tf repo (with depth=1) git clone --depth=20 git@github.com:ZenIDTeam/tensorflow.git git remote add upstream https://github.com/tensorflow/tensorflow.git git fetch origin tag v2.12.0 --no-tags git checkout v2.12.0 add your commits on top tag it and push the tag to this repo git tag v2.12.0-custom-ops git push origin tag v2.12.0-custom-ops --no-tags git push origin tag v2.12.0 --no-tags (push the base version tag too)