1. cat() received an invalid combination of arguments - got (Tensor, Tensor), but expected one of: * (tuple of Tensors tensors, name dim, *, Tensor out) * (tuple of Tensors tensors, int dim, *, Tensor out)
解决办法:torch.cat后连接多个数据时,要用小括号包住,并赋予维数,torch.cat((p1,p2),1);