Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite for consecutive matrix inverses #887

Closed
ricardoV94 opened this issue Jul 5, 2024 · 0 comments · Fixed by #893
Closed

Rewrite for consecutive matrix inverses #887

ricardoV94 opened this issue Jul 5, 2024 · 0 comments · Fixed by #893
Labels

Comments

@ricardoV94
Copy link
Member

Description

import pytensor
import pytensor.tensor as pt

x = pt.matrix("x")
out = pt.linalg.inv(pt.linalg.inv(x))
pytensor.function([x], out).dprint()
# MatrixInverse [id A] 1
#  └─ MatrixInverse [id B] 0
#     └─ x [id C]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant