Skip to content

Commit

Permalink
Use raw strings to avoid "DeprecationWarning: invalid escape sequence"
Browse files Browse the repository at this point in the history
  • Loading branch information
saitcakmak authored Feb 22, 2023
1 parent 0d58144 commit 71e6826
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 71e6826

Please sign in to comment.