Merge pull request #25941 from Bharat123rox:master

PiperOrigin-RevId: 238311092
This commit is contained in:
TensorFlower Gardener 2019-03-13 14:46:58 -07:00
commit d8a1d6d450

View File

@ -335,7 +335,7 @@ def self_adjoint_eigvals(tensor, name=None):
"""Computes the eigenvalues of one or more self-adjoint matrices. """Computes the eigenvalues of one or more self-adjoint matrices.
Note: If your program backpropagates through this function, you should replace Note: If your program backpropagates through this function, you should replace
it with a call to tf.linalg.eigvalsh (possibly ignoring the second output) to it with a call to tf.linalg.eigh (possibly ignoring the second output) to
avoid computing the eigen decomposition twice. This is because the avoid computing the eigen decomposition twice. This is because the
eigenvectors are used to compute the gradient w.r.t. the eigenvalues. See eigenvectors are used to compute the gradient w.r.t. the eigenvalues. See
_SelfAdjointEigV2Grad in linalg_grad.py. _SelfAdjointEigV2Grad in linalg_grad.py.