Skip to content

Commit

Permalink
Rename support point rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jun 24, 2024
1 parent 5dd4e46 commit 5935250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc/distributions/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def _infer_final_signature(signature: str, n_inputs, n_outputs, n_rngs) -> str:
return signature


class FiniteLogpPointRewrite(GraphRewriter):
class SupportPointRewrite(GraphRewriter):
def rewrite_support_point_scan_node(self, node):
if not isinstance(node.op, Scan):
return
Expand Down Expand Up @@ -454,7 +454,7 @@ def dist_support_point(op, rv, *args):
rv_out_idx = node.outputs.index(rv)

fgraph = op.fgraph.clone()
replace_support_point = FiniteLogpPointRewrite()
replace_support_point = SupportPointRewrite()
replace_support_point.rewrite(fgraph)
# Replace dummy inner inputs by outer inputs
fgraph.replace_all(tuple(zip(op.inner_inputs, args)), import_missing=True)
Expand Down

0 comments on commit 5935250

Please sign in to comment.