Skip to content

Bump PyTensor dependency #7740

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 1 commit into from
Apr 2, 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- 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.28.3,<2.29
- pytensor>=2.30.2,<2.31
- python-graphviz
- networkx
- rich>=13.7.1
Expand Down
8 changes: 0 additions & 8 deletions pymc/variational/opvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
from pytensor.graph.replace import graph_replace
from pytensor.scalar.basic import identity as scalar_identity
from pytensor.tensor.elemwise import Elemwise
from pytensor.tensor.shape import unbroadcast

import pymc as pm

Expand Down Expand Up @@ -1096,13 +1095,6 @@ def make_size_and_deterministic_replacements(self, s, d, more_replacements=None)
"""
initial = self._new_initial(s, d, more_replacements)
initial = pt.specify_shape(initial, self.symbolic_initial.type.shape)
# The static shape of initial may be more precise than self.symbolic_initial,
# and reveal previously unknown broadcastable dimensions. We have to mask those again.
if initial.type.broadcastable != self.symbolic_initial.type.broadcastable:
unbroadcast_axes = (
i for i, b in enumerate(self.symbolic_initial.type.broadcastable) if not b
)
initial = unbroadcast(initial, *unbroadcast_axes)
if more_replacements:
initial = graph_replace(initial, more_replacements, strict=False)
return {self.symbolic_initial: initial}
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.28.3,<2.29
pytensor>=2.30.2,<2.31
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.28.2,<2.29
pytensor>=2.30.2,<2.31
rich>=13.7.1
scipy>=1.4.1
threadpoolctl>=3.1.0,<4.0.0
Expand Down
Loading