pytorch之permute()用法
将tensor的维度换位。
参数: - dims (int …*) - 换位顺序
例:
1 | >>> x = torch.randn(2, 3, 5) |
Reference
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
将tensor的维度换位。
参数: - dims (int …*) - 换位顺序
例:
1 | >>> x = torch.randn(2, 3, 5) |