Skip to content

Commit f07991d

Browse files
authored
update symeig backward note about similar eigenvalues (pytorch#52311) (pytorch#52446)
Summary: First part of pytorch#49886 to at least properly warn users of the current state Pull Request resolved: pytorch#52311 Reviewed By: soulitzer Differential Revision: D26495644 Pulled By: albanD fbshipit-source-id: 72abdfe41cdbcc1ac739a536eb85d1aa4ba90897
1 parent c458cd4 commit f07991d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/_torch_docs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8515,9 +8515,9 @@ def merge_dicts(*dicts):
85158515
.. note:: Irrespective of the original strides, the returned matrix `V` will
85168516
be transposed, i.e. with strides `V.contiguous().transpose(-1, -2).stride()`.
85178517
8518-
.. note:: Extra care needs to be taken when backward through outputs. Such
8519-
operation is really only stable when all eigenvalues are distinct.
8520-
Otherwise, ``NaN`` can appear as the gradients are not properly defined.
8518+
.. warning:: Extra care needs to be taken when backward through outputs. Such
8519+
operation is only stable when all eigenvalues are distinct and becomes
8520+
less stable the smaller :math:`\min_{i \neq j} |\lambda_i - \lambda_j|` is.
85218521
85228522
Args:
85238523
input (Tensor): the input tensor of size :math:`(*, n, n)` where `*` is zero or more

0 commit comments

Comments
 (0)