From 235c602d3aee3ee3ccc3eda3efe77dad5c780702 Mon Sep 17 00:00:00 2001 From: Corleone Date: Fri, 11 Nov 2022 21:26:25 +0800 Subject: [PATCH] modify Tensor doc for median op --- .../api/api_python/mindspore/Tensor/mindspore.Tensor.median.rst | 2 -- mindspore/python/mindspore/common/tensor.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.median.rst b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.median.rst index 1be6a6acdc6..6736e14acb8 100644 --- a/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.median.rst +++ b/docs/api/api_python/mindspore/Tensor/mindspore.Tensor.median.rst @@ -3,6 +3,4 @@ mindspore.Tensor.median .. py:method:: mindspore.Tensor.median(axis=-1, keepdims=False) - 输出Tensor指定维度上的中值与索引。 - 详情请参考 :func:`mindspore.ops.median`。 diff --git a/mindspore/python/mindspore/common/tensor.py b/mindspore/python/mindspore/common/tensor.py index 502125fa5e4..fbcb97b7396 100644 --- a/mindspore/python/mindspore/common/tensor.py +++ b/mindspore/python/mindspore/common/tensor.py @@ -3674,8 +3674,6 @@ class Tensor(Tensor_): def median(self, axis=-1, keepdims=False): r""" - Computes the median and indices of input tensor. - For details, please refer to :func:`mindspore.ops.median`. """ self._init_check()