用法:
mxnet.ndarray.op.concat(*data, **kwargs)
out:- 此函數的輸出。
NDArray 或 NDArray 列表
參數:
返回:
返回類型:
沿給定軸連接輸入數組。
注意:
Concat
已棄用。請改用concat
。輸入數組的維度應該是相同的,除了它們將被連接的軸。沿連接軸的輸出數組的維度將等於輸入數組的相應維度的總和。
concat
輸出的存儲類型取決於輸入的存儲類型- concat(csr, csr, ..., csr, dim=0) = csr
- 否則,
concat
使用默認存儲生成輸出
例子:
x = [[1,1],[2,2]] y = [[3,3],[4,4],[5,5]] z = [[6,6], [7,7],[8,8]] concat(x,y,z,dim=0) = [[ 1., 1.], [ 2., 2.], [ 3., 3.], [ 4., 4.], [ 5., 5.], [ 6., 6.], [ 7., 7.], [ 8., 8.]] Note that you cannot concat x,y,z along dimension 1 since dimension 0 is not the same for all the input arrays. concat(y,z,dim=1) = [[ 3., 3., 6., 6.], [ 4., 4., 7., 7.], [ 5., 5., 8., 8.]]
相關用法
- Python mxnet.ndarray.op.cast用法及代碼示例
- Python mxnet.ndarray.op.cast_storage用法及代碼示例
- Python mxnet.ndarray.op.cbrt用法及代碼示例
- Python mxnet.ndarray.op.clip用法及代碼示例
- Python mxnet.ndarray.op.choose_element_0index用法及代碼示例
- Python mxnet.ndarray.op.ceil用法及代碼示例
- Python mxnet.ndarray.op.uniform用法及代碼示例
- Python mxnet.ndarray.op.sample_negative_binomial用法及代碼示例
- Python mxnet.ndarray.op.khatri_rao用法及代碼示例
- Python mxnet.ndarray.op.unravel_index用法及代碼示例
- Python mxnet.ndarray.op.slice_like用法及代碼示例
- Python mxnet.ndarray.op.L2Normalization用法及代碼示例
- Python mxnet.ndarray.op.softmax_cross_entropy用法及代碼示例
- Python mxnet.ndarray.op.round用法及代碼示例
- Python mxnet.ndarray.op.diag用法及代碼示例
- Python mxnet.ndarray.op.linalg_det用法及代碼示例
- Python mxnet.ndarray.op.sample_uniform用法及代碼示例
- Python mxnet.ndarray.op.sort用法及代碼示例
- Python mxnet.ndarray.op.linalg_potrf用法及代碼示例
- Python mxnet.ndarray.op.linalg_potri用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 mxnet.ndarray.op.concat。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。