Skip to content

Commit a69b79f

Browse files
Update math.py
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent 1ab1dc3 commit a69b79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/tensor/rewriting/math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def local_sqrt_sqr(fgraph, node):
557557
def local_log_sqrt(fgraph, node):
558558
x = node.inputs[0]
559559

560-
if not (x.owner and isinstance(x.owner.op, Elemwise)) or not isinstance(
560+
if not (x.owner and isinstance(x.owner.op, Elemwise)) and isinstance(
561561
x.owner.op.scalar_op, ps.Sqrt
562562
):
563563
return

0 commit comments

Comments
 (0)