Skip to content

Conversation

CNugteren
Copy link
Contributor

@CNugteren CNugteren commented Aug 2, 2023

What do these changes do?

This updates TensorFlow from version 2.11 to 2.13 (note that 2.12 was skipped, so this is a double update). The code was updated to make it compile and run again.

I checked the diff for tf_tfl_passes.cc to see if we need to update anything but I don't think it is significant. You can see it for yourself with (in the third_party/tensorflow folder):

git diff d5b57ca93e506df258271ea00fc29cf98383a374 1cb1a030a62b169d90d34c747ab9b09f332bf905  -- tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

I removed third_party/tensorflow_patches/embedded_toolchain.patch (from #749) since I believe that same patch has been applied to the mainline TensorFlow already. And I updated third_party/tensorflow_patches/disable_forced_mkl.patch (from #666) because that file is now completely different.

I also removed all dependencies on the https://github.com/larq/zoo from this repository, since it isn't currently compatible with TF 2.13 (although we have a fix). To make things easier in the future as well, I thought it is best to remove the dependency. If you think otherwise, we can revert these changes and wait for a new larq-zoo release.

How Has This Been Tested?

I ran some of the compilation and tests locally, but CI should be able to cover everything.

Benchmark Results

I did not convert any models to see if there are issues with them.

Related issue number

https://github.com/plumerai/lce-micro/issues/1358 (internal issue)

@CNugteren CNugteren added the feature New feature or request label Aug 2, 2023
@CNugteren CNugteren requested review from lgeiger and Tombana August 4, 2023 06:47
@CNugteren CNugteren marked this pull request as ready for review August 4, 2023 06:47
Copy link
Member

@lgeiger lgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks for going through and updating this 🎉

@CNugteren CNugteren merged commit 9f095bd into main Aug 7, 2023
@CNugteren CNugteren deleted the update_to_tf_2_13 branch August 7, 2023 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants