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

[Dependencies] Update tensorflow and numpy #326

Open
1 task done
timlrx opened this issue Sep 25, 2024 · 0 comments
Open
1 task done

[Dependencies] Update tensorflow and numpy #326

timlrx opened this issue Sep 25, 2024 · 0 comments
Labels
annoyance This impacts usability blocked Issue is impeded by another problem enhancement Improvement to existing feature needs-triage Issues need triages by maintainer

Comments

@timlrx
Copy link
Collaborator

timlrx commented Sep 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

Currently v2.x still uses an older version of TensorFlow and Numpy for backward compatibility issues. Suggest considering bumping the version in the next release update.

The latest version of Tensorflow only supports Numpy 1, so we would have to wait for the next version (apparently releasing around the end of the month) for Numpy 2 support - https://blog.tensorflow.org/2024/07/whats-new-in-tensorflow-217.html

For Tensorflow, moving from 2.14.0 to 2.17.0 is a major change.

Tensorflow 2.16.0+ uses keras 3 instead of Keras 2 (see compatibility matrix at the end over here - https://keras.io/getting_started/). Keras 3 model format (.keras) is not compatible with Keras 2 (.keras)...

It also supports TensorFlow format (SavedModels and .h5) but through a lower level API - keras.layers.TFSMLayer(saved_model, call_endpoint='serving_default') that does not expose predict and predict_prob methods out of the box.

To bump the version, we will have to also update the TensorFlow serializer to support the other formats. Suggest to take this up in a subsequent release (can look at broader support for more commonly used packages e.g. PyTorch as well) and we can bump Numpy and Tensorflow then.

@timlrx timlrx added enhancement Improvement to existing feature annoyance This impacts usability blocked Issue is impeded by another problem needs-triage Issues need triages by maintainer labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annoyance This impacts usability blocked Issue is impeded by another problem enhancement Improvement to existing feature needs-triage Issues need triages by maintainer
Projects
None yet
Development

No branches or pull requests

1 participant