摘要: 参考这篇文章,讲的比较好 https://cloud.tencent.com/developer/article/1725102 C=torch.cat((A,B),0)就表示按维数0(行)拼接A和B,也就是竖着拼接,A上B下。 C=torch.cat((A,B),1)就表示按维数1(列)拼接A和B 阅读全文
posted @ 2022-07-22 23:59 猪猪猪猪侠 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 参考 https://mathpretty.com/12065.html 简单的来说, 参数0代表竖着加 参数1代表横着加 阅读全文
posted @ 2022-07-22 23:53 猪猪猪猪侠 阅读(60) 评论(0) 推荐(0) 编辑