tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 611 forks source link

Fix tf-addons for upcoming keras 3 default. #2858

Closed cantonios closed 11 months ago

cantonios commented 11 months ago

Description

Keras 3.0 will become default in TF 2.16 (and is currently default in tf-nightly). This breaks this tf-addons package. Here we make minimal changes to return functionality in a backward-compatible way.

Fixes # (issue)

None known reported.

Type of change

Checklist:

How Has This Been Tested?

Imported with tf-nightly, keras-nightly, tf_keras-nightly, setting both TF_USE_LEGACY_KERAS=0 and 1.

bot-of-gabrieldemarmiesse commented 11 months ago

@howl-anderson @pedrolarben @ssaishruthi @hyang0129

You are owners of some files modified in this pull request. Would you kindly review the changes whenever you have the time to? Thank you very much.