当前位置:网站首页>Usage of permute() function in pytorch
Usage of permute() function in pytorch
2022-08-03 03:02:00 【Mick..】
permute() function is used for dimension transformation.It often appears in image processing. For example, the read image is in numpy format, which is (h, w, c), but the data processed by torch is (c, h, w).So this function is often used
import torch##Conform to a normal distribution with mean 0 and variance 1x=torch.randn(2,3,5)print(x.size())##Dimension transformationx=torch.permute(x,(2,0,1))print(x.size())边栏推荐
- v-if条件判断及v-show
- 扩展卡尔曼滤波【转】
- 13-security其他.md
- 容联云发送验证码
- 嵌入式开发:嵌入式基础——’ ’和” ”的区别
- initramfs详解-----初识initramfs
- .NET in-depth analysis of the LINQ framework (four: IQueryable, IQueryProvider interface details)
- SAP ABAP Gateway Client 里 OData 测试的 PUT, PATCH, MERGE 请求有什么区别
- PHICOMM(斐讯)N1盒子 - Armbian5.77(Debian 9)配置自动连接WIFI无线网络
- 提高测试覆盖率的四大步骤
猜你喜欢
随机推荐
有趣简单的M2处理器性能实验:Swift与C代码执行速度的比较
五大靠谱的婚恋相亲APP详细特点缺点分析!
【Gopher 学个函数】边学边练,简单为 Go 上个分
一个接口并发问题的模拟与复现
Greenplum数据库故障分析——can not listen port
暴力递归到动态规划 08(小马走象棋)
ssh(sshd)安全配置
使用VSCode中遇到的问题及解决办法
13-security其他.md
DJI内推码(2022年8月2日更新)
容联云发送验证码
.NET in-depth analysis of the LINQ framework (four: IQueryable, IQueryProvider interface details)
11-security认证.md
粘包与拆包
暴力递归到动态规划 07(516. 最长回文子序列)
超级复杂可贴图布局的初级智能文本提示器
自己做的选择
常见钓鱼手法及防范
EasyGBS播放器优化:设备通道视频播放出现跳屏问题的修复
Greenplum database failure analysis, can not listen to the port









