Skip to content

Commit

Permalink
Replace PreserveRVMappings with MeasurableConversionTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jan 10, 2023
1 parent ebe03b9 commit 6fe3c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aemcmc/rewriting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from functools import wraps
from typing import Callable, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union

from aeppl.rewriting import PreserveRVMappings
from aeppl.rewriting import MeasurableConversionTracker
from aesara.compile.builders import OpFromGraph
from aesara.compile.mode import optdb
from aesara.graph.basic import Apply, Variable, clone_replace, io_toposort
Expand Down Expand Up @@ -84,7 +84,7 @@ def construct_ir_fgraph(
memo=memo,
copy_orphans=False,
copy_inputs=False,
features=[ShapeFeature(), PreserveRVMappings(obs_rvs_to_values)],
features=[ShapeFeature(), MeasurableConversionTracker()],
)

# Update `obs_rvs_to_values` so that it uses the new cloned variables
Expand Down

0 comments on commit 6fe3c54

Please sign in to comment.