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 766460a commit 7984812Copy full SHA for 7984812
pytensor/tensor/rewriting/linalg.py
@@ -569,8 +569,8 @@ def rewrite_inv_inv(fgraph, node):
569
valid_inverses = (MatrixInverse, MatrixPinv, Solve, SolveTriangular)
570
valid_solves = (Solve, SolveTriangular)
571
# Check if Solve has b = eye
572
- solve_inv_check = True
573
- 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):
574
solve_inv_check = _find_solve_with_eye(node)
575
576
if not solve_inv_check:
0 commit comments