From 4aecdfa1e654fd3ae3ec68ff2223a9872259c6f7 Mon Sep 17 00:00:00 2001 From: huanghui Date: Tue, 2 Aug 2022 14:53:33 +0800 Subject: [PATCH] add comment for tensor.svd --- docs/api/api_python/mindspore/Tensor/mindspore.Tensor.svd.rst | 2 ++ mindspore/python/mindspore/common/tensor.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.svd.rst b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.svd.rst index 27fb7a94ae8..f66ccc1e08b 100644 --- a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.svd.rst +++ b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.svd.rst @@ -3,6 +3,8 @@ mindspore.Tensor.svd .. py:method:: mindspore.Tensor.svd(full_matrices=False, compute_uv=True) + 计算单个或多个矩阵的奇异值分解。 + 更多参考详见 :func:`mindspore.ops.svd`。 参数: diff --git a/mindspore/python/mindspore/common/tensor.py b/mindspore/python/mindspore/common/tensor.py index 73965f150df..f90edad44cc 100644 --- a/mindspore/python/mindspore/common/tensor.py +++ b/mindspore/python/mindspore/common/tensor.py @@ -4060,6 +4060,8 @@ class Tensor(Tensor_): def svd(self, full_matrices=False, compute_uv=True): """ + Computes the singular value decompositions of one or more matrices. + Refer to :func:`mindspore.ops.svd` for more detail. Args: