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

Remove @cached decorator for TriangularLinearOperator.to_dense #51

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

Balandat
Copy link
Collaborator

This seems unnecessary and also causes issues with pickling: cornellius-gp/gpytorch#2264 (comment)

This seems unnecessary and also causes issues with pickling: cornellius-gp/gpytorch#2264 (comment)
@esantorella
Copy link
Collaborator

My gut instinct is that this is right, since I've seen the same dense tensor getting cached to multiple places, including via this function. If this causes any performance degradation, hopefully the BoTorch tutorials runs and the tracking I'm adding to them would pick that up (pytorch/botorch#1695).

@gpleiss gpleiss enabled auto-merge (squash) February 27, 2023 22:18
@gpleiss gpleiss merged commit 92f7e33 into cornellius-gp:main Feb 27, 2023
@Balandat Balandat deleted the no_cached_tlop_todense branch April 13, 2023 19:35
Balandat added a commit to Balandat/linear_operator that referenced this pull request May 3, 2023
gpleiss pushed a commit that referenced this pull request May 3, 2023
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.

None yet

3 participants