Skip to content

Commit 1bd2f56

Browse files
Change use of "opt[imize]" to "rewrite"
1 parent 31e55d3 commit 1bd2f56

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

aehmc/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import aesara.tensor as at
55
from aesara.graph.basic import Variable, ancestors
66
from aesara.graph.fg import FunctionGraph
7-
from aesara.graph.opt_utils import optimize_graph
8-
from aesara.tensor.basic_opt import ShapeFeature
7+
from aesara.graph.rewriting.utils import rewrite_graph
8+
from aesara.tensor.rewriting.shape import ShapeFeature
99
from aesara.tensor.var import TensorVariable
1010

1111

@@ -16,7 +16,7 @@ def simplify_shapes(graphs: List[Variable]):
1616
features=[ShapeFeature()],
1717
clone=False,
1818
)
19-
return optimize_graph(shape_fg).outputs
19+
return rewrite_graph(shape_fg).outputs
2020

2121

2222
class RaveledParamsMap:

environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dependencies:
1111
- compilers
1212
- numpy>=1.18.1
1313
- scipy>=1.4.0
14-
- aesara>=2.7.5
15-
- aeppl>=0.0.9
14+
- aesara>=2.8.0
15+
- aeppl>=0.0.35
1616
# Intel BLAS
1717
- mkl
1818
- mkl-service

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
install_requires=[
1818
"numpy>=1.18.1",
1919
"scipy>=1.4.0",
20-
"aesara>=2.7.5",
21-
"aeppl>=0.0.9",
20+
"aesara>=2.8.0",
21+
"aeppl>=0.0.35",
2222
],
2323
tests_require=["pytest"],
2424
long_description=open("README.md").read() if exists("README.md") else "",

0 commit comments

Comments
 (0)