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.Unstack.rst 895 B

12345678910111213141516171819202122232425262728
  1. mindspore.ops.Unstack
  2. =======================
  3. .. py:class:: mindspore.ops.Unstack(axis=0)
  4. 根据指定轴对输入矩阵进行分解。
  5. 若输入Tensor在指定的轴上的rank为 `R` ,则输出Tensor的rank为 `(R-1)` 。
  6. 给定一个shape为 :math:`(x_1, x_2, ..., x_R)` 的Tensor。如果存在 :math:`0 \le axis` ,则输出Tensor的shape为 :math:`(x_1, x_2, ..., x_{axis}, x_{axis+2}, ..., x_R)` 。
  7. 与Stack函数操作相反。
  8. **参数:**
  9. - **axis** (int) - 指定矩阵分解的轴。取值范围为[-R,R),默认值:0。
  10. **输入:**
  11. - **input_x** (Tensor) - 输入Tensor,其shape为 :math:`(x_1, x_2, ..., x_R)` 。rank必须大于0。
  12. **输出:**
  13. Tensor对象组成的tuple。每个Tensor对象的shape相同。
  14. **异常:**
  15. - **ValueError** - axis超出[-len(input_x.shape), len(input_x.shape))范围。