(1)view reshape
丢失dim信息
(2)unsqueeze/squeeze
(3)expand / repeat
expand:
-1表示不变
32–>33 不可行
repeat
(4)转置.t
只可以二维矩阵
(5)transpose
(6)permute
相关文章:
(1)view reshape
丢失dim信息
(2)unsqueeze/squeeze
(3)expand / repeat
expand:
-1表示不变
32–>33 不可行
repeat
(4)转置.t
只可以二维矩阵
(5)transpose
(6)permute
相关文章: