Skip to content

Add matrix_transpose and .mT helpers #702

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
merged 5 commits into from
Apr 12, 2024

Conversation

Dhruvanshu-Joshi
Copy link
Member

@Dhruvanshu-Joshi Dhruvanshu-Joshi commented Apr 10, 2024

Description

Added support for matrix_transpose operation using pytensor. The function and the tests are similar to its numpy implementation.
Also added a temporary fix for the mypy error.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

@@ -7,6 +7,7 @@ pytensor/compile/sharedvalue.py
pytensor/graph/rewriting/basic.py
pytensor/ifelse.py
pytensor/link/basic.py
pytensor/link/c/cmodule.py
Copy link
Member

@ricardoV94 ricardoV94 Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll have to ignore this pre-commit failures locally until we figure out. On the CI it doesn't behave like in your local machine and these changes break it. You can add --no-verify when commiting from the terminal (or unselect run pre-commit hooks when commiting from pycharm).

@ricardoV94 ricardoV94 merged commit 5e612ab into pymc-devs:main Apr 12, 2024
@ricardoV94 ricardoV94 changed the title Added support for matrix_transpose Add matrix_transpose and .mT property helpers (#702) Apr 12, 2024
@ricardoV94 ricardoV94 changed the title Add matrix_transpose and .mT property helpers (#702) Add matrix_transpose and .mT property helpers Apr 12, 2024
@ricardoV94 ricardoV94 changed the title Add matrix_transpose and .mT property helpers Add matrix_transpose and .mT helpers Apr 12, 2024
@ricardoV94
Copy link
Member

Thanks @Dhruvanshu-Joshi!

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 this pull request may close these issues.

Implement matrix_transpose and mT method for TensorVariables
2 participants