📜  火炬连接矩阵 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:10.331000             🧑  作者: Mango

代码示例1
third_tensor = torch.cat((first_tensor, second_tensor), 0) # keep column width append in rows

third_tensor = torch.cat((first_tensor, second_tensor), 1) # keep row height and append in columns