Skip to content

Commit e5831f7

Browse files
committed
Note the self-adjoint case in the LinearOperatorInversion solve comment
1 parent c2df0c6 commit e5831f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tensorflow/python/ops/linalg/linear_operator_inversion.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def _linop_solve(
187187
right_operator: linear_operator.LinearOperator,
188188
) -> linear_operator.LinearOperator:
189189
"""Solve inverse of generic `LinearOperator`s."""
190-
# With `adjoint=True`, `left_operator` is `self.adjoint()`, which is not a
191-
# `LinearOperatorInversion`.
190+
# With `adjoint=True`, `left_operator` is `self.adjoint()`, which is a
191+
# `LinearOperatorAdjoint` unless `self.is_self_adjoint` is True.
192192
if isinstance(left_operator, LinearOperatorInversion):
193193
return left_operator.operator.matmul(right_operator)
194194
return super()._linop_solve(left_operator, right_operator)

0 commit comments

Comments
 (0)