当前位置:网站首页>Output results of convolution operation with multiple tensors and multiple convolution kernels
Output results of convolution operation with multiple tensors and multiple convolution kernels
2022-07-02 00:34:00 【Hebei Yifan】
import tensorflow as tf
inputValue = tf.constant([
#1 A tensor
[
#3 That's ok 3 Column 2 depth
[[2, 5], [3, 3], [8, 2]],
[[6, 1], [1, 2], [5, 4]],
[[7, 9], [2, 3], [-1, 3]]
],
[
[[1, 3], [2, 1], [3, 2]],
[[1, 1], [2, 2], [1, 4]],
[[3, 4], [4, 2], [-1, 1]]
]
], tf.float32)
kernels = tf.constant([
# 2 That's ok
[
# 2 Column
[
# 2 depth
[3, 1, -3], [1, -1, 7]
],
[
[-2, 2, -5], [2, 7, 3]
]
],
[
# 2 Column
[
[-1, 3, 1], [-3, -8, 6]
],
[
[4, 6, 8], [5, 9, -5]
]
]
], tf.float32)
validResult = tf.nn.conv2d(inputValue, kernels, [1, 1, 1, 1], "VALID")
print(validResult)
2 individual 3 That's ok 3 Column 2 Depth input and 3 individual 2 That's ok 2 Column 2 Convolution of depth and convolution
The depth of the input quantity must be the same as the depth of the convolution sum
The depth of the output is the number of convolution kernels
The number of output quantity is the number of input quantity
The number of rows and columns of the output quantity is the same as padding and stride of , Convolution operation , In the two dimensions of number and depth stride Take all 1, Row and column stride As the case may be .
Understanding of tensor and convolution , recommend 《 Graphic deep learning and neural network : From tensor to TensorFlow Realization 》_ Zhang Ping's book
边栏推荐
- 449-原码、补码、反码
- Which app is better and more secure for stock mobile account opening
- Jielizhi Bluetooth headset quality control and production skills [chapter]
- JS——图片转base码 、base转File对象
- [template] adaptive Simpson integral
- Correlation - intra group correlation coefficient
- [cascade classifier training parameters] training Haar cascades
- Is the securities account given by qiniu business school safe? Where can I open an account
- Qt5.12.9 migration tutorial based on Quanzhi H3
- 【CTF】bjdctf_2020_babystack2
猜你喜欢
Slf4j print abnormal stack information
Asp . Text of automatic reply to NETCORE wechat subscription number
Jielizhi, production line assembly link [chapter]
ThreadLocal内存泄漏是什么,怎么解决
2022 pinduoduo details / pinduoduo product details / pinduoduo SKU details
数据库--SqlServer详解
[embedded system course design] a single key controls the LED light
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
Example explanation: move graph explorer to jupyterlab
USB-IF协会与各种接口的由来
随机推荐
Guide d'installation du serveur SQL
【CTF】bjdctf_ 2020_ babystack2
Node——生成微信权限验证配置
【opencv】train&test HOG+SVM
使用 ES 实现疫情地图或者外卖点餐功能(含代码及数据)
Operate database transactions with jpatractionmanager
Intelligent operation and maintenance practice: banking business process and single transaction tracking
What does open loop and closed loop mean?
SQL数据分析之子查询的综合用法和案例题【耐心整理】
Leetcode skimming: stack and queue 01 (realizing queue with stack)
数据分析方法论与前人经验总结【笔记干货】
Shell custom function
BPR (Bayesian personalized sorting)
Node——Egg 创建本地文件访问接口
If the browser is accidentally closed, how does react cache the forms filled out by users?
SQL数据分析之窗口排序函数rank、dense_rank、raw_number与lag、lead窗口偏移函数【用法整理】
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login
[opencv450] hog+svm and hog+cascade for pedestrian detection
mysql之B tree 以及 B+tree
LDR6035智能蓝牙音响可对手机设备持续充放电方案