Skip to content

Commit

Permalink
Reverse test expectation for local_expm1 rewrite
Browse files Browse the repository at this point in the history
With the new `local_add_neg_to_sub` rewrite a previously missed case is now also detected
  • Loading branch information
Ricardo committed Jan 19, 2022
1 parent 271ddb9 commit 8344ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tensor/test_math_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3972,7 +3972,7 @@ def test_local_expm1():
for n in h.maker.fgraph.toposort()
)

assert not any(
assert any(
isinstance(n.op, Elemwise) and isinstance(n.op.scalar_op, aes.basic.Expm1)
for n in r.maker.fgraph.toposort()
)
Expand Down

0 comments on commit 8344ff4

Please sign in to comment.