Giter Site home page Giter Site logo

Comments (3)

jburnim avatar jburnim commented on June 10, 2024 1

Thanks for the report!

The immediate breakage should be fixed by the release today of TFP 0.24.0 -- https://github.com/tensorflow/probability/releases/tag/v0.24.0 . TFP 0.24.0 should work if TF 2.16.1 and TF Keras 2.16 are installed.

We do not currently have any plans to migrate from Keras 2 to Keras 3.

from probability.

matthewfeickert avatar matthewfeickert commented on June 10, 2024

While a new release of tensorflow-probability will be required to not get broken in the way I showed above, from @jburnim's 988f023 it seems like after this tensorflow-probability release tf-keras will be a required dependency for use with tensorflow as well.

This seems like it should be provided through a tensorflow-probability[tensorflow] extra as communicating dependencies to users through error messages is very annoying from the user side.

edit: If I had taken the time to read 988f023 more carefully before posting this, I would have realized that commit also add this extra as tensorflow-probability[tf]:

probability/setup.py

Lines 110 to 112 in 988f023

extras_require={ # e.g. `pip install tfp-nightly[jax]`
'jax': ['jax', 'jaxlib'],
'tf': [TF_PACKAGE, KERAS_PACKAGE],

probability/setup.py

Lines 51 to 56 in 988f023

if release:
TF_PACKAGE = 'tensorflow >= 2.15'
KERAS_PACKAGE = 'tf-keras >= 2.15'
else:
TF_PACKAGE = 'tf-nightly'
KERAS_PACKAGE = 'tf-keras-nightly'

from probability.

matthewfeickert avatar matthewfeickert commented on June 10, 2024

Thanks @jburnim.

We do not currently have any plans to migrate from Keras 2 to Keras 3.

That's useful to know. It seems that tensorflow-probability is making choices to migrate further from tensorflow (or perhaps the other way around). Are there any plans to just split the library development into one JAX based library and one TensorFlow based library? Or is the idea to just split the support internally and then not duplicate the existing codebase until tensorflow drifts enough to just drop support?

Note to other people that are trying to balance supporting supporting tensorflow-probability with tensorflow in a library, you might want to do something like scikit-hep/pyhf#2452.

from probability.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.