Skip to content

Commit 7984812

Browse files
committed
fix failing tests
1 parent 766460a commit 7984812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/tensor/rewriting/linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ def rewrite_inv_inv(fgraph, node):
569569
valid_inverses = (MatrixInverse, MatrixPinv, Solve, SolveTriangular)
570570
valid_solves = (Solve, SolveTriangular)
571571
# Check if Solve has b = eye
572-
solve_inv_check = True
573-
if isinstance(node.op.core_op, valid_solves):
572+
solve_inv_check = False
573+
if hasattr(node.op, "core_op") and isinstance(node.op.core_op, valid_solves):
574574
solve_inv_check = _find_solve_with_eye(node)
575575

576576
if not solve_inv_check:

0 commit comments

Comments
 (0)