Skip to content

Speed up MatmulLinearOperator.to_dense() for DiagLazyTensors#122

Merged
Balandat merged 2 commits into
cornellius-gp:mainfrom
Balandat:speedup_matmul_linop_todense_diag
Feb 3, 2026
Merged

Speed up MatmulLinearOperator.to_dense() for DiagLazyTensors#122
Balandat merged 2 commits into
cornellius-gp:mainfrom
Balandat:speedup_matmul_linop_todense_diag

Conversation

@Balandat

@Balandat Balandat commented Feb 3, 2026

Copy link
Copy Markdown
Collaborator

This can help substantially if some of the operators involved are DiagLinearOperators.
This fixes the issue reported in meta-pytorch/botorch#3159

This can help substantially if some of the operators involved are `DiagLinearOperator`s.
This fixes the issue reported in meta-pytorch/botorch#3159
@Balandat Balandat requested a review from kayween February 3, 2026 07:10
@Balandat

Balandat commented Feb 3, 2026

Copy link
Copy Markdown
Collaborator Author

Only the last commit is relevant here; the rest comes from #121

@jacobrgardner

jacobrgardner commented Feb 3, 2026

Copy link
Copy Markdown
Member

Can we rebase this once the jaxtyping removal goes in? This is a little crazystyle to review at the moment since it touches basically every file in the repo.

Edit: Oh I see the point of your comment now, we can just review the diff from the last commit.

@jacobrgardner jacobrgardner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah approved assuming the last commit is the only real diff here, that's an obvious speed win.

@Balandat Balandat merged commit bf1c913 into cornellius-gp:main Feb 3, 2026
4 checks passed
@Balandat Balandat deleted the speedup_matmul_linop_todense_diag branch February 3, 2026 19:01
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