Skip to content

Commit

Permalink
Merge pull request #52 from cornellius-gp/saitcakmak-patch-1
Browse files Browse the repository at this point in the history
Use raw strings to avoid "DeprecationWarning: invalid escape sequence"
  • Loading branch information
Balandat authored Feb 23, 2023
2 parents 0d58144 + 71e6826 commit 424193c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linear_operator/operators/_linear_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _matmul(self, rhs: torch.Tensor) -> torch.Tensor:

@abstractmethod
def _size(self) -> torch.Size:
"""
r"""
Returns the size of the resulting Tensor that the linear operator represents.
..note::
Expand Down Expand Up @@ -569,7 +569,7 @@ def _mul_matrix(self, other: Union[torch.Tensor, "LinearOperator"]) -> LinearOpe
return MulLinearOperator(self, other)

def _preconditioner(self) -> Tuple[Callable, "LinearOperator", torch.Tensor]:
"""
r"""
(Optional) define a preconditioner (:math:`\mathbf P`) for linear conjugate gradients
:return:
Expand Down Expand Up @@ -676,7 +676,7 @@ def _root_inv_decomposition(
initial_vectors: Optional[torch.Tensor] = None,
test_vectors: Optional[torch.Tensor] = None,
) -> LinearOperator:
"""
r"""
Returns the (usually low-rank) inverse root of a LinearOperator of a PSD matrix.
..note::
Expand Down

0 comments on commit 424193c

Please sign in to comment.