Skip to content
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

Drop Tensorflow Addons support (TF>2.14) #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

muellerdo
Copy link

@muellerdo muellerdo commented May 28, 2024

Hi @faustomorales,
first of all, thanks for this awesome package and your work!

Bug: Tensorflow Addons (TFA) dropped maintenance with Keras update 2->3.

Solution: All necessary functions of TFA are available in Keras 3.

Affected positions: Activation layer GELU.
Pull Request: Remove TFA import in layers.py and use Keras 3 GELU.

Side effect:
Tensorflow versions utilizing < Keras 3 (all versions bellow 2.15?) are not supported anymore.
Positive effect:
All up-to-date Tensorflow versions >=2.15 are functional now, again.

Fixes issues #44 and #43

Cheers,
Dominik

@muellerdo
Copy link
Author

Sidenote:
Another interesting implementation maybe would be to move the TFA import into the else section prior to the commit, so it only imports TFA if it is not available in the current Keras version.

Don't know if this works with the Python interpreter but maybe this will allow compatibility also with older Tensorflow/Keras versions.

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