mindspore/docs/api/api_python/numpy/mindspore.numpy.column_stac...

16 lines
593 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.numpy.column_stack
=================================
.. py:function:: mindspore.numpy.column_stack(tup)
将一维Tensor作为列堆叠为二维Tensor。二维Tensor保持原样堆叠如同 ``np.hstack``
参数:
- **tup** (Union[Tensor, tuple, list]) - 一组一维或二维Tensor。它们必须具有相同的shape除了要连接的轴外。
返回:
二维Tensor由给定的Tensor堆叠而成。
异常:
- **TypeError** - 如果 ``tup`` 不是Tensor、list或tuple。
- **ValueError** - 如果 ``tup`` 为空。