【PyTorch】 tensor.cat张量合并 1、背景 2、cat方法 3、示例 1、背景 pytorch中tensor合并方法是cat,即torch.cat: 将2个及以上的tensor合并为一个tensor。 打印官方关于torch.cat的说明: import torch print(torch.__version__) help(torch.cat) 运行如下: 2、cat方法 具体如下ÿ