Skip to content

Commit 59176b6

Browse files
committed
Bump PyTensor dependency
1 parent dc7cfee commit 59176b6

16 files changed

+24
-22
lines changed

conda-envs/environment-alternative-backends.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
25+
- pytensor>=2.32.0,<2.33
2626
- python-graphviz
2727
- networkx
2828
- rich>=13.7.1

conda-envs/environment-dev.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
15+
- pytensor>=2.32.0,<2.33
1616
- python-graphviz
1717
- networkx
1818
- scipy>=1.4.1

conda-envs/environment-docs.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
14+
- pytensor>=2.32.0,<2.33
1515
- python-graphviz
1616
- rich>=13.7.1
1717
- scipy>=1.4.1

conda-envs/environment-test.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
17+
- pytensor>=2.32.0,<2.33
1818
- python-graphviz
1919
- networkx
2020
- rich>=13.7.1

conda-envs/windows-environment-dev.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
15+
- pytensor>=2.32.0,<2.33
1616
- python-graphviz
1717
- networkx
1818
- rich>=13.7.1

conda-envs/windows-environment-test.yml

Lines changed: 1 addition & 1 deletion
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.31.7,<2.32
18+
- pytensor>=2.32.0,<2.33
1919
- python-graphviz
2020
- networkx
2121
- rich>=13.7.1

pymc/distributions/continuous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ def support_point(rv, size, b, kappa, mu):
16181618

16191619
def logp(value, b, kappa, mu):
16201620
value = value - mu
1621-
res = pt.log(b / (kappa + (kappa**-1))) + (
1621+
res = pt.log(b / (kappa + pt.reciprocal(kappa))) + (
16221622
-value * b * pt.sign(value) * (kappa ** pt.sign(value))
16231623
)
16241624

pymc/logprob/linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import pytensor.tensor as pt
1515

1616
from pytensor.graph.rewriting.basic import node_rewriter
17-
from pytensor.tensor.math import _matrix_matrix_matmul
17+
from pytensor.tensor.math import _matmul
1818

1919
from pymc.logprob.abstract import MeasurableBlockwise, MeasurableOp, _logprob, _logprob_helper
2020
from pymc.logprob.rewriting import measurable_ir_rewrites_db
@@ -55,7 +55,7 @@ def logprob_measurable_matmul(op, values, l, r): # noqa: E741
5555
return x_logp - log_abs_jac_det
5656

5757

58-
@node_rewriter(tracks=[_matrix_matrix_matmul])
58+
@node_rewriter(tracks=[_matmul])
5959
def find_measurable_matmul(fgraph, node):
6060
"""Find measurable matrix-matrix multiplication operations."""
6161
if isinstance(node.op, MeasurableOp):

pymc/ode/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def augment_system(ode_func, n_states, n_theta):
8383
Augemted system of differential equations.
8484
"""
8585
# Present state of the system
86-
t_y = pt.vector("y", dtype="float64")
86+
t_y = pt.vector("y", dtype="float64", shape=(n_states,))
8787
t_y.tag.test_value = np.ones((n_states,), dtype="float64")
8888
# Parameter(s). Should be vector to allow for generaliztion to multiparameter
8989
# systems of ODEs. Is m dimensional because it includes all initial conditions as well as ode parameters

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pandas>=0.24.0
1616
polyagamma
1717
pre-commit>=2.8.0
1818
pymc-sphinx-theme>=0.16.0
19-
pytensor>=2.31.7,<2.32
19+
pytensor>=2.32.0,<2.33
2020
pytest-cov>=2.5
2121
pytest>=3.0
2222
rich>=13.7.1

0 commit comments

Comments
 (0)