10936: add_docstr(
10937:     torch.svd,
10938:     r"""
10939: svd(input, some=True, compute_uv=True, *, out=None) -> (Tensor, Tensor, Tensor)
10940: 
10941: Computes the singular value decomposition of either a matrix or batch of
10942: matrices :attr:`input`. The singular value decomposition is represented as a
10943: namedtuple `(U, S, V)`, such that :attr:`input` :math:`= U \text{diag}(S) V^{\text{H}}`.
10944: where :math:`V^{\text{H}}` is the transpose of `V` for real inputs,
10945: and the conjugate transpose of `V` for complex inputs.
10946: If :attr:`input` is a batch of matrices, then `U`, `S`, and `V` are also
10947: batched with the same batch dimensions as :attr:`input`.
10948: 
10949: If :attr:`some` is `True` (default), the method returns the reduced singular
10950: value decomposition. In this case, if the last two dimensions of :attr:`input` are
10951: `m` and `n`, then the returned `U` and `V` matrices will contain only
10952: `min(n, m)` orthonormal columns.
10953: 