当前位置:网站首页>convn-N 维卷积
convn-N 维卷积
2022-06-27 12:05:00 【qq-120】
convn N 维卷积
一、语法
C = convn(A,B)
C = convn(A,B,shape)
二、说明
C = convn(A,B) 返回数组 A 和 B 的 N 维卷积。
C = convn(A,B,shape) 根据 shape 返回卷积的子区。例如,C = convn(A,B,‘same’) 返回卷积中大小与 A 相同的中心部分。
三、示例
三维卷积
您可以控制 convn 函数的输出大小。例如,‘same’ 选项会删除卷积的外部部分,只返回中心部分,此部分的大小与输入相同。求随机 2×3×2 数组 A 与 2×2×2 核 B 的卷积。结果是一个 3×4×3 数组,大小等于 size(A) + size(B) - 1。
A = rand(2,3,2);
B = 0.25*ones(2,2,2);
C = convn(A,B)
C(:,:,1) =
0.1307 0.2556 0.1582 0.0333
0.2102 0.4605 0.3220 0.0718
0.0795 0.2049 0.1638 0.0384
C(:,:,2) =
0.3204 0.5873 0.3593 0.0925
0.4482 0.9268 0.6261 0.1475
0.1278 0.3395 0.2667 0.0551
C(:,:,3) =
0.1897 0.3317 0.2011 0.0591
0.2380 0.4663 0.3040 0.0758
0.0483 0.1346 0.1029 0.0166
输入参数


边栏推荐
- hibernate操作oracle数据库 主键自增
- 动态规划【三】(区间dp)石子合并
- Self taught ADT and OOP
- Daily leetcode force deduction (21~25)
- Online bidding of Oracle project management system
- Unlock the secret of C language key words (issue 6)
- uniapp下拉弹层选择框效果demo(整理)
- Interview shock 60: what will cause MySQL index invalidation?
- MapReduce实战小案例(自定义排序、二次排序、分组、分区)
- Two usages of enumeration classes
猜你喜欢

Dm8: Dameng database - lock timeout

一个有趣的网络掩码的实验

剑指 Offer 04. 二维数组中的查找

Tidb 6.0: making Tso more efficient tidb Book rush

AI for Science:科研范式、开源平台和产业形态

alibaba jarslink

In 2021, the global carbon graphite brush revenue is about US $2366million, and it is expected to reach US $2701.8 million in 2028
![[on Nacos] get started quickly](/img/cc/af4ab640952b880595a89f66688ff5.jpg)
[on Nacos] get started quickly

dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article

树莓派 3b+ 学习
随机推荐
号称史上最难618,淘宝数据盘点你做对了吗?
namespace ‘rlang’ 0.2.0 is being loaded, but >= 0.3.0 is required
i. Construction of mx6ull C language environment
application.properties 的配置信息
Four memory areas (stack, heap, global, code area)
The R language uses the follow up The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The labels parameter adds label information t
在 Golang 中构建 CRUD 应用程序
Configuration of thymeleaf
建木持续集成平台v2.5.0发布
MapReduce practical cases (customized sorting, secondary sorting, grouping, zoning)
MapReduce principle analysis (in-depth source code)
Object serialization
build.gradle 配置
Mit6.031 software construction7 reading notesdesigning specifications
MIT6.031 软件构造 Reading7阅读笔记Designing Specifications(设计规范)
[on Nacos] get started quickly
Interview shock 60: what will cause MySQL index invalidation?
消息隊列的使用
和动态规划的第一次相遇
Getting started with go web programming: validators