Skip to content

Remove uses of deprecated aesara.tensor.nlinalg.diag #4501

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

Merged

Conversation

brandonwillard
Copy link
Contributor

@brandonwillard brandonwillard commented Mar 5, 2021

This PR changes calls to aesara.tensor.nlinalg.diag to aesara.tensor.basic.diag. This should be used in combination with the most recent Aesara code; otherwise, there will be issues with JAX conversions of AllocDiag Ops (see pymc-devs/pytensor#313).

@brandonwillard brandonwillard self-assigned this Mar 5, 2021
@brandonwillard brandonwillard force-pushed the remove-use-of-deprecated-diag branch from b3c058f to 82454e8 Compare March 5, 2021 00:55
@twiecki
Copy link
Member

twiecki commented Mar 5, 2021

I don't understand how this fixes the issue. You're just changing an import of extract_diag, but the issue is about diag and how user-code can import it from two different places with one working and one not.

@twiecki
Copy link
Member

twiecki commented Mar 5, 2021

@brandonwillard My bad, I thought this was a PR to aesara.

@twiecki twiecki merged commit 2901888 into pymc-devs:master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants