当前位置:网站首页>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
边栏推荐
- The difference between timer and scheduledthreadpoolexecutor
- 2022 pinduoduo details / pinduoduo product details / pinduoduo SKU details
- Practical calculation of the whole process of operational amplifier hysteresis comparator
- The new version of graphic network PDF will be released soon
- Dongge cashes in and the boss retires?
- 【CTF】bjdctf_2020_babystack2
- [CTF] bjdctf 2020 Bar _ Bacystack2
- I want to ask, which is the better choice for securities companies? I don't understand. Is it safe to open an account online now?
- Kuberntes cloud native combat high availability deployment architecture
- Kyushu cloud and Intel jointly released the smart campus private cloud framework, enabling new infrastructure for education
猜你喜欢

BPR (Bayesian personalized sorting)

Kuberntes cloud native combat high availability deployment architecture

Some understandings of graph convolution neural network r-gcn considering relations and some explanations of DGL official code
![Data analysis methodology and previous experience summary [notes dry goods]](/img/00/e4c4cf37f1ca9134546f970d800226.png)
Data analysis methodology and previous experience summary [notes dry goods]

JS -- image to base code, base to file object
![[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login](/img/c1/23be4399119f42d85a7b86fc8a59fc.png)
[wechat authorized login] the small program developed by uniapp realizes the function of obtaining wechat authorized login

GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速

excel查找与引用函数

LeetCode中等题题分享(5)

数据库--SqlServer详解
随机推荐
【底部弹出-选择器】uniapp Picker组件——底部弹起的滚动选择器
Graduation season is both a farewell and a new beginning
Leetcode 96 différents arbres de recherche binaires
How do Lenovo computers connect Bluetooth headsets?
The origin of usb-if Association and various interfaces
SQL Server 安裝指南
Talents come from afar, and Wangcheng district has consolidated the intellectual base of "strengthening the provincial capital"
449-原码、补码、反码
What does open loop and closed loop mean?
Cmake engineering related
B tree and b+tree of MySQL
Qt5.12.9 migration tutorial based on Quanzhi H3
2023 Lexus ES products have been announced, which makes great progress this time
[leetcode] number of maximum consecutive ones
How to type spaces in latex
Shell process control
An intern's journey to cnosdb
Jielizhi, production line assembly link [chapter]
The new version of graphic network PDF will be released soon
数据库--SqlServer详解