We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ce13a commit dde7eb9Copy full SHA for dde7eb9
pytensor/tensor/rewriting/linalg.py
@@ -599,8 +599,8 @@ def rewrite_inv_inv(fgraph, node):
599
valid_inverses = (MatrixInverse, MatrixPinv, Solve, SolveTriangular)
600
valid_solves = (Solve, SolveTriangular)
601
# Check if Solve has b = eye
602
- solve_inv_check = True
603
- if isinstance(node.op.core_op, valid_solves):
+ solve_inv_check = False
+ if hasattr(node.op, "core_op") and isinstance(node.op.core_op, valid_solves):
604
solve_inv_check = _find_solve_with_eye(node)
605
606
if not solve_inv_check:
0 commit comments