Skip to content

Commit 2545019

Browse files
authored
Bump PyTensor dependency (#7740)
1 parent 4185b7b commit 2545019

9 files changed

+8
-16
lines changed

conda-envs/environment-alternative-backends.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
- numpyro>=0.8.0
2323
- pandas>=0.24.0
2424
- pip
25-
- pytensor>=2.28.3,<2.29
25+
- pytensor>=2.30.2,<2.31
2626
- python-graphviz
2727
- networkx
2828
- rich>=13.7.1

conda-envs/environment-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.28.3,<2.29
15+
- pytensor>=2.30.2,<2.31
1616
- python-graphviz
1717
- networkx
1818
- scipy>=1.4.1

conda-envs/environment-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- numpy>=1.25.0
1212
- pandas>=0.24.0
1313
- pip
14-
- pytensor>=2.28.3,<2.29
14+
- pytensor>=2.30.2,<2.31
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
- pandas>=0.24.0
1515
- pip
1616
- polyagamma
17-
- pytensor>=2.28.3,<2.29
17+
- pytensor>=2.30.2,<2.31
1818
- python-graphviz
1919
- networkx
2020
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- numpy>=1.25.0
1313
- pandas>=0.24.0
1414
- pip
15-
- pytensor>=2.28.3,<2.29
15+
- pytensor>=2.30.2,<2.31
1616
- python-graphviz
1717
- networkx
1818
- rich>=13.7.1

conda-envs/windows-environment-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
- pandas>=0.24.0
1616
- pip
1717
- polyagamma
18-
- pytensor>=2.28.3,<2.29
18+
- pytensor>=2.30.2,<2.31
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

pymc/variational/opvi.py

-8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
from pytensor.graph.replace import graph_replace
6464
from pytensor.scalar.basic import identity as scalar_identity
6565
from pytensor.tensor.elemwise import Elemwise
66-
from pytensor.tensor.shape import unbroadcast
6766

6867
import pymc as pm
6968

@@ -1096,13 +1095,6 @@ def make_size_and_deterministic_replacements(self, s, d, more_replacements=None)
10961095
"""
10971096
initial = self._new_initial(s, d, more_replacements)
10981097
initial = pt.specify_shape(initial, self.symbolic_initial.type.shape)
1099-
# The static shape of initial may be more precise than self.symbolic_initial,
1100-
# and reveal previously unknown broadcastable dimensions. We have to mask those again.
1101-
if initial.type.broadcastable != self.symbolic_initial.type.broadcastable:
1102-
unbroadcast_axes = (
1103-
i for i, b in enumerate(self.symbolic_initial.type.broadcastable) if not b
1104-
)
1105-
initial = unbroadcast(initial, *unbroadcast_axes)
11061098
if more_replacements:
11071099
initial = graph_replace(initial, more_replacements, strict=False)
11081100
return {self.symbolic_initial: initial}

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ numpydoc
1616
pandas>=0.24.0
1717
polyagamma
1818
pre-commit>=2.8.0
19-
pytensor>=2.28.3,<2.29
19+
pytensor>=2.30.2,<2.31
2020
pytest-cov>=2.5
2121
pytest>=3.0
2222
rich>=13.7.1

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cachetools>=4.2.1
33
cloudpickle
44
numpy>=1.25.0
55
pandas>=0.24.0
6-
pytensor>=2.28.2,<2.29
6+
pytensor>=2.30.2,<2.31
77
rich>=13.7.1
88
scipy>=1.4.1
99
threadpoolctl>=3.1.0,<4.0.0

0 commit comments

Comments
 (0)