input(list): List of input Tensors with data type float32, float64, int32,
input(list): List of input Tensors with data type float16, float32, float64, int32,
int64.
int64. All the Tensors in ``input`` must have the same data type.
axis(int32|Variable, optional): A scalar with type ``int32`` or a ``Tensor`` with shape [1] and type ``int32``. Axis to compute indices along. The effective range
axis(int|Variable, optional): Specify the axis to operate on the input Tensors.
is [-R, R), where R is Rank(x). when axis<0, it works the same way
It's a scalar with type ``int`` or a ``Tensor`` with shape [1] and data type ``int32`` or ``int64``.
The effective range is [-R, R), where R is Rank(x). When ``axis < 0``, it works the same way
as axis+R. Default is 0.
as axis+R. Default is 0.
name (str, optional): The default value is None. Normally there is no
name (str, optional): The default value is None. Normally there is no
need for user to set this property. For more information, please
need for user to set this property. For more information, please
refer to :ref:`api_guide_Name`.
refer to :ref:`api_guide_Name`.
Raises:
TypeError: The dtype of input must be one of float16, float32, float64, int32 and int64.
TypeError: The ``axis`` must be int or Variable. The dtype of ``axis`` must be int32 or int64 when it's a Tensor.
TypeError: All the Tensors in ``input`` must have the same data type.
Returns:
Returns:
Variable: A Tensor with the same data type as input's.
Variable: A Tensor with the same data type as ``input``.