Skip to content

Bump PyTensor dependency #7792

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

Merged
merged 2 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conda-envs/environment-alternative-backends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies:
- numpyro>=0.8.0
- pandas>=0.24.0
- pip
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- networkx
- rich>=13.7.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- numpy>=1.25.0
- pandas>=0.24.0
- pip
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- networkx
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/environment-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- numpy>=1.25.0
- pandas>=0.24.0
- pip
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- rich>=13.7.1
- scipy>=1.4.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/environment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- pandas>=0.24.0
- pip
- polyagamma
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- networkx
- rich>=13.7.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/windows-environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
- numpy>=1.25.0
- pandas>=0.24.0
- pip
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- networkx
- rich>=13.7.1
Expand Down
2 changes: 1 addition & 1 deletion conda-envs/windows-environment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- pandas>=0.24.0
- pip
- polyagamma
- pytensor>=2.30.2,<2.31
- pytensor>=2.31.2,<2.32
- python-graphviz
- networkx
- rich>=13.7.1
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ numpydoc
pandas>=0.24.0
polyagamma
pre-commit>=2.8.0
pytensor>=2.30.2,<2.31
pytensor>=2.31.2,<2.32
pytest-cov>=2.5
pytest>=3.0
rich>=13.7.1
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cachetools>=4.2.1
cloudpickle
numpy>=1.25.0
pandas>=0.24.0
pytensor>=2.30.2,<2.31
pytensor>=2.31.2,<2.32
rich>=13.7.1
scipy>=1.4.1
threadpoolctl>=3.1.0,<4.0.0
Expand Down
1 change: 1 addition & 0 deletions scripts/run_mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
pymc/model/transform/conditioning.py
pymc/pytensorf.py
pymc/sampling/jax.py
pymc/sampling/mcmc.py
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't be bothered to appease mypy, none of this is related to PyTensor:

#7803

"""


Expand Down
4 changes: 0 additions & 4 deletions tests/sampling/test_mcmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ def test_partial_trace_with_trace_unsupported():
pm.sample(trace=[a])


@pytest.mark.xfail(condition=(pytensor.config.floatX == "float32"), reason="Fails on float32")
class TestNamedSampling:
def test_shared_named(self):
G_var = shared(value=np.atleast_2d(1.0), shape=(1, None), name="G")
Expand All @@ -537,7 +536,6 @@ def test_shared_named(self):
mu=np.atleast_2d(0),
tau=np.atleast_2d(1e20),
size=(1, 1),
initval=np.atleast_2d(0),
)
theta = pm.Normal(
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)
Expand All @@ -553,7 +551,6 @@ def test_shared_unnamed(self):
mu=np.atleast_2d(0),
tau=np.atleast_2d(1e20),
size=(1, 1),
initval=np.atleast_2d(0),
)
theta = pm.Normal(
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)
Expand All @@ -569,7 +566,6 @@ def test_constant_named(self):
mu=np.atleast_2d(0),
tau=np.atleast_2d(1e20),
size=(1, 1),
initval=np.atleast_2d(0),
)
theta = pm.Normal(
"theta", mu=pt.dot(G_var, theta0), tau=np.atleast_2d(1e20), size=(1, 1)
Expand Down