API

输入:[ batch_size, channels, height_1, width_1 ]

Conv2d输入参数:[ channels, output, height_2, width_2 ]

输出:[ batch_size,output, height_3, width_3 ]

实例:

def torch_practice():
x = torch.randn(2,1,16,4)
conv = torch.nn.Conv2d(1, 32, (2,2))
res = conv(x)
print(res.shape) if __name__ == '__main__':
torch_practice()

输出:torch.Size([2, 32, 15, 3])

batch大小不变:2

输出通道加厚:32。由卷积核的通道数决定

卷积结果:[15,3]。计算公式,n-m+1, 16-2+1=15

最新文章

  1. Android自定义控件之自定义ViewGroup实现标签云
  2. typedef函数指针使用方法
  3. 《Linux系统 date、cal、hwclock时间命令的用法》
  4. PC问题-(仅供备用)取消磁盘的自动扫描
  5. Ubuntu12.04下eclipse提示框黑色背景色的修改方法
  6. Contact类解析
  7. awk 用法小结
  8. Java继承--子父类中的构造函数
  9. ●BZOJ 1853 [Scoi2010]幸运数字
  10. NOIP-珠心算
  11. 使用cmd查看电脑连接过的wifi密码(二)
  12. PyQT5-QCalendarWidget 日历显示
  13. VUE之文字跑马灯效果
  14. datagrid在MVC中的运用02-结合搜索
  15. Comet技术在Java Web中的应用
  16. windows查看当前python的版本
  17. 完美解决wordpress邮件链接无效的问题
  18. 实战DeviceIoControl系列之四:获取硬盘的详细信息
  19. 字符串处理scanf("%d%*c",&n);
  20. C# chart.DataManipulator.FinancialFormula()公式的使用 线性回归预测方法

热门文章

  1. C++中函数访问数组的方式
  2. Linux centosVMware iptables规则备份和恢复、firewalld的9个zone、firewalld关于zone的操作、firewalld关于service的操作
  3. 随机游走模型(Random Walk)
  4. Spring 各个组件架构
  5. PostgreSQL存取jsonb
  6. python--一起来盖个时间戳!!
  7. 一 SSH整合:Spring整合Struts2的两种方式,struts.xml管理Action&Bean管理Action
  8. 吴裕雄 Bootstrap 前端框架开发——Bootstrap 按钮
  9. PIL pip error
  10. SpringCloud 跨域访问cors