GithubHelp home page GithubHelp logo

Test on numpy 2.0 about pytensor HOT 8 OPEN

ricardoV94 avatar ricardoV94 commented on July 3, 2024
Test on numpy 2.0

from pytensor.

Comments (8)

ricardoV94 avatar ricardoV94 commented on July 3, 2024 1

Is there a NumPy 2 tracking issue for PyMC as well?

Searched for one, but didn't find it (though could very easily have missed it)

No, the only blocker for PyMC is PyTensor compatibility with numpy 2.0 (I think)

from pytensor.

ricardoV94 avatar ricardoV94 commented on July 3, 2024

#689 confirmed we need to pin it. CC @maresb

from pytensor.

maresb avatar maresb commented on July 3, 2024

Ok, I can put together a repodata patch to make it retroactive on conda-forge. The first step is to add it to our pyproject.toml, and ideally make a release containing the pin. (Conda-forge core prefers to see such retroactive changes being made for something that's already in the feedstock, so that's why a release would be good.)

Any idea on the timeline before the non-rc release drops?

from pytensor.

ricardoV94 avatar ricardoV94 commented on July 3, 2024

Any idea on the timeline before the non-rc release drops?

Couldn't find anything conclusive, but sounds like soon: numpy/numpy#24300

from pytensor.

maresb avatar maresb commented on July 3, 2024

On the conda-forge side I wrote a repodata patch, and then when I tested it didn't actually do anything...

Happily, in terms of Numpy, the conda-forge infrastructure currently automatically pins numpy<2.0.a0 to ensure binary compatibility, so my repodata patch was redundant. 🎉

There's the question of how to move forward once 2.0 becomes available, and this I'm less sure about. I'm testing adding a pin in conda-forge/pytensor-suite-feedstock#88, but there's the possibility that this interferes with the conda-forge magic (see conda-forge/pytensor-suite-feedstock#35).

My recommendation on how to proceed is that we keep an eye on the pins by checking the artifacts in conda-forge/pytensor-suite-feedstock before merging any of the version update PRs.

I'm very relieved that there is no threat of PyTensor breaking as soon as Numpy 2 is released. 😅

from pytensor.

danieltomasz avatar danieltomasz commented on July 3, 2024

Here us the issue to track ecosystem compatibility with numpy 2.0 numpy/numpy#26191 (comment)

from pytensor.

seberg avatar seberg commented on July 3, 2024

Hmmm, when looking around, I had stumbled on Aesara fork of Theano, but somehow not pytensor. The one potentitially complicated change is that right now I removed MapIter, because it is terribly slow (in the public API form) but having it public API means dragging.
Aesara was saying that they wanted to get rid of that code anyway, and I am almost betting that calling back into Python might be better than using PyArray_MapIter (e.g. using ufunc.at() is usually now fast, but of course not when running on some older NumPy versions)

Please let me know if this is a big issue, or if I can give some pointers in how to just replace the whole thing.

from pytensor.

jakirkham avatar jakirkham commented on July 3, 2024

Is there a NumPy 2 tracking issue for PyMC as well?

Searched for one, but didn't find it (though could very easily have missed it)

from pytensor.

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.