当前位置:网站首页>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())边栏推荐
猜你喜欢

能添加任意贴图超级复布局的初级智能文本提示器

扩展卡尔曼滤波【转】

粘包与拆包

【UE4】搭建局域网内VR直播 UE4.27

Shell脚本乘法口诀等小实验

Violence recursion to dynamic programming 08 (pony go chess)

DJI内推码(2022年8月2日更新)

Greenplum database failure analysis, can not listen to the port

6-接口跨域处理

Wireshark data capture and analysis of the transport layer protocol (TCP protocol)
随机推荐
爆款视频怎么做?这里或许有答案
initramfs详解----设备文件系统
visual studio 2012 为啥这么优秀
Shell脚本乘法口诀等小实验
【静态类型和动态类型 编译检查和运行检查 Objective-C中】
公司代码学习笔记
php一维数组合并
[NCTF2019]SQLi-1||SQL注入
OpenWRT setup ipv6 network
吴恩达深度学习deeplearning.ai——第一门课:神经网络与深度学习——第二节:神经网络基础(上)
vs studio 安装opencv 环境
梅科尔工作室-14天华为培训三
pytest:如何调用 pytest
[Example构造方法增加notNull参数,默认false,允许值为null,值为null的时候不加入到条件中
EasyGBS播放器优化:设备通道视频播放出现跳屏问题的修复
阿南的对话
DJI内推码(2022年8月2日更新)
mysql容器数据卷持久化
个人开发者必备,免费 API 网关工具推荐
v-if条件判断及v-show