Skip to content

Commit

Permalink
Fix styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Smit-create authored and brandonwillard committed Jan 25, 2023
1 parent 283ea00 commit 7b6dd98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aesara/tensor/rewriting/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def log_diff_exp(fgraph, node):
a, b = x.owner.inputs
if not a.owner or not b.owner:
return
a_op, b_op = a.owner.op.scalar_op, b.owner.op.scalar_op
a_op, b_op = a.owner.op.scalar_op, b.owner.op.scalar_op
if isinstance(a_op, aes.Exp) and isinstance(b_op, aes.Exp):
a = a.owner.inputs[0]
b = b.owner.inputs[0]
Expand Down
4 changes: 2 additions & 2 deletions tests/tensor/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -3522,6 +3522,7 @@ def test_infer_shape(self):
self.op_class,
)


def test_logdiffexp():
x = fmatrix()
y = fmatrix()
Expand All @@ -3530,7 +3531,6 @@ def test_logdiffexp():
ops_graph = [
node
for node in graph
if isinstance(node.op, Elemwise)
and isinstance(node.op.scalar_op, aes.Exp)
if isinstance(node.op, Elemwise) and isinstance(node.op.scalar_op, aes.Exp)
]
assert len(ops_graph) == 0

0 comments on commit 7b6dd98

Please sign in to comment.