Skip to content

Error with Slogdet returning floats instead of arrays #799

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

Closed
ricardoV94 opened this issue Jun 3, 2024 · 0 comments · Fixed by #807
Closed

Error with Slogdet returning floats instead of arrays #799

ricardoV94 opened this issue Jun 3, 2024 · 0 comments · Fixed by #807
Labels
beginner friendly bug Something isn't working linalg Linear algebra

Comments

@ricardoV94
Copy link
Member

Description

import pytensor.tensor as pt

x = pt.matrix("x")
sign, logdet = pt.linalg.slogdet(x)
det = sign * pt.exp(logdet)
det.eval({x: [[1]]})  # ValueError: expected an ndarray

Also slogdet is not in tensor.nlinalg.__all__ and therefore doesn't show up in tensor.linalg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner friendly bug Something isn't working linalg Linear algebra
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant