其他分享
首页 > 其他分享> > pytorch tensor 调换矩阵行的顺序

pytorch tensor 调换矩阵行的顺序

作者:互联网

image

生成一个想要的顺序 [1, 0] 然后去索引

标签:顺序,tensor,调换,矩阵,索引,pytorch
来源: https://www.cnblogs.com/btschang/p/12942546.html