Skip to content

Remove tensorflow.addons dependency and bring needed classes#1010

Open
jordimas wants to merge 1 commit into
OpenNMT:masterfrom
jordimas:remove_tensorflow_addons
Open

Remove tensorflow.addons dependency and bring needed classes#1010
jordimas wants to merge 1 commit into
OpenNMT:masterfrom
jordimas:remove_tensorflow_addons

Conversation

@jordimas

@jordimas jordimas commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

TensorFlow Addons was deprecated in May 2024.

This PR has the following goals:

  • Remove the TensorFlow Addons library dependency
  • Bring into a new namespace (opennmt.tfa) only the code that is need for OpenNMT to work
  • Bring all the unit tests possible (coverage on is a at 80% opennmt.tfa)
  • Introduce the minimum changes possible in OpenNMT to accommodate the change

In terms of licenses, TensorFlow Addons is Apache and OpenNMT-tf MIT, then code is safe to combine.

This is not a small change and I did everything possible in my side to make sure that are not regressions but further testing is welcome.

Once this is integrated we can start a process to look what can be deprecated slowly from the TF addons and move into TF and Keras implementations when available.

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.

1 participant