diff --git a/docs/api/api_python/mindspore/mindspore.Tensor.rst b/docs/api/api_python/mindspore/mindspore.Tensor.rst index a7f106d309c..bd846fd1398 100644 --- a/docs/api/api_python/mindspore/mindspore.Tensor.rst +++ b/docs/api/api_python/mindspore/mindspore.Tensor.rst @@ -192,7 +192,7 @@ mindspore.Tensor **参数:** - - **x** (Tensor) - 输入Tensor,是一个数据类型为uint8、uint16、unint32、uint64、int8、int16、int32或int64的Tensor。 + - **x** (Tensor) - 输入Tensor,是一个数据类型为uint16、int16或int32的Tensor。 **返回:** @@ -206,7 +206,7 @@ mindspore.Tensor **参数:** - - **x** (Tensor) - 输入Tensor,是一个数据类型为uint8、uint16、unint32、uint64、int8、int16、int32或int64的Tensor。 + - **x** (Tensor) - 输入Tensor,是一个数据类型为uint16、int16或int32的Tensor。 **返回:** @@ -220,7 +220,7 @@ mindspore.Tensor **参数:** - - **x** (Tensor) - 输入Tensor,是一个数据类型为uint8、uint16、unint32、uint64、int8、int16、int32或int64的Tensor。 + - **x** (Tensor) - 输入Tensor,是一个数据类型为uint16、int16或int32的Tensor。 **返回:** diff --git a/mindspore/python/mindspore/common/tensor.py b/mindspore/python/mindspore/common/tensor.py index 16854ca532d..7b327868a58 100644 --- a/mindspore/python/mindspore/common/tensor.py +++ b/mindspore/python/mindspore/common/tensor.py @@ -719,7 +719,7 @@ class Tensor(Tensor_): Refer to :func:`mindspore.ops.bitwise_and` for more detail. Args: - x (Tensor): The input tensor. + x (Tensor): The input tensor with int16, int32 or uint16 data type. Returns: Tensor, has the same type as the `x`. @@ -746,7 +746,7 @@ class Tensor(Tensor_): Refer to :func:`mindspore.ops.bitwise_or` for more detail. Args: - x (Tensor): The input tensor. + x (Tensor): The input tensor with int16, int32 or uint16 data type. Returns: Tensor, has the same type as the `x`. @@ -773,7 +773,7 @@ class Tensor(Tensor_): Refer to :func:`mindspore.ops.bitwise_xor` for more detail. Args: - x (Tensor): The input tensor. + x (Tensor): The input tensor with int16, int32 or uint16 data type. Returns: Tensor, has the same type as the `x`. @@ -897,7 +897,10 @@ class Tensor(Tensor_): """ Ger product of `self` and `x`. Calculate the outer product of two arrays. If `self` is a 1D Tensor of shape :math:`(m,)` and `x` is a 1D Tensor of shape :math:`(n,)`, then `output` must be a Tensor of - shape :math:`(m * n)`. + shape :math:`(m, n)`. + + Note: + Currently Ascend does not support float64 data input. Refer to :func:`mindspore.ops.ger` for more detail.