From 6f50f347b3c6d04bf3b799dbdf7d83f90e738eca Mon Sep 17 00:00:00 2001 From: yanglf1121 Date: Fri, 9 Apr 2021 15:36:15 +0800 Subject: [PATCH] fix concatenate doc error --- mindspore/numpy/array_ops.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mindspore/numpy/array_ops.py b/mindspore/numpy/array_ops.py index a1d9e1c64b9..8caaa00baf6 100644 --- a/mindspore/numpy/array_ops.py +++ b/mindspore/numpy/array_ops.py @@ -370,6 +370,10 @@ def concatenate(arrays, axis=0): """ Joins a sequence of tensors along an existing axis. + Note: + To match Numpy behaviour, :math:`axis >= 32` will not cause value error, the + `axis` will be treated as :class:`None` instead. + Args: arrays (Union[Tensor, tuple(Tensor), list(Tensor)]): a tensor or a list of tensors to be concatenated. @@ -381,7 +385,7 @@ def concatenate(arrays, axis=0): Raises: TypeError: If input arguments have types not specified above. - ValueError: If specified `axis` < 0, or exceeds tensor.ndim. + ValueError: If `axis` is not in the range of :math:`[-ndim, ndim-1]`, and less than 32. Supported Platforms: ``Ascend`` ``GPU`` ``CPU``