(1)view reshape
丢失dim信息
【龙龙老师 pytorch】③ 维度变换
(2)unsqueeze/squeeze
【龙龙老师 pytorch】③ 维度变换
【龙龙老师 pytorch】③ 维度变换
(3)expand / repeat
expand:
-1表示不变
32–>33 不可行
【龙龙老师 pytorch】③ 维度变换
repeat
【龙龙老师 pytorch】③ 维度变换
(4)转置.t
只可以二维矩阵
【龙龙老师 pytorch】③ 维度变换
(5)transpose
【龙龙老师 pytorch】③ 维度变换
(6)permute
【龙龙老师 pytorch】③ 维度变换

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-06-17
猜你喜欢
  • 2021-12-19
  • 2021-12-03
  • 2021-05-05
  • 2022-01-04
  • 2021-06-18
  • 2022-12-23
  • 2021-05-28
相关资源
相似解决方案