Skip to content

Commit

Permalink
Fix warning in ReplaceValidate.replace_all_validate_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Jul 10, 2022
1 parent 510a961 commit c1fef51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aesara/graph/features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import inspect
import sys
import time
import warnings
from collections import OrderedDict
from functools import partial
from io import StringIO
Expand Down Expand Up @@ -628,7 +629,7 @@ def replace_all_validate_remove(
if rm in fgraph.apply_nodes or rm in fgraph.variables:
fgraph.revert(chk)
if warn:
warn(
warnings.warn(
"An optimization wanted to replace a Variable"
" in the graph, but the replacement for it doesn't"
" remove it. We disabled the optimization."
Expand Down

0 comments on commit c1fef51

Please sign in to comment.