Skip to content

Commit

Permalink
Remove @cached decorator for TriangularLinearOperator.to_dense (#51)
Browse files Browse the repository at this point in the history
This seems unnecessary and also causes issues with pickling: cornellius-gp/gpytorch#2264 (comment)

Co-authored-by: Geoff Pleiss <gpleiss@gmail.com>
  • Loading branch information
Balandat and gpleiss authored Feb 27, 2023
1 parent 424193c commit 92f7e33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion linear_operator/operators/triangular_linear_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def add_diagonal(self, added_diag: Tensor) -> "TriangularLinearOperator":
added_diag_lt = self._tensor.add_diagonal(added_diag)
return self.__class__(added_diag_lt, upper=self.upper)

@cached
def to_dense(self) -> Tensor:
return self._tensor.to_dense()

Expand Down

0 comments on commit 92f7e33

Please sign in to comment.