You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindspore.ops.ReverseV2.rst 689 B

1234567891011121314151617181920212223242526
  1. mindspore.ops.ReverseV2
  2. ========================
  3. .. py:class:: mindspore.ops.ReverseV2(axis)
  4. 对输入Tensor按指定维度反转。
  5. .. warning::
  6. "axis"的取值范围为[-dims, dims - 1],"dims"表示"input_x"的维度长度。
  7. **参数:**
  8. - **axis** (Union[tuple(int), list(int)) - 指定反转的轴。
  9. **输入:**
  10. - **input_x** (Tensor) - 输入需反转的任意维度的Tensor。数据类型为数值型,不包括float64。
  11. **输出:**
  12. Tensor,shape和数据类型与输入 `input_x` 相同。
  13. **异常:**
  14. - **TypeError** - `axis` 既不是list也不是tuple。
  15. - **TypeError** - `axis` 的元素不是int。