当前位置:网站首页>多个张量与多个卷积核做卷积运算的输出结果
多个张量与多个卷积核做卷积运算的输出结果
2022-07-01 19:08:00 【河北一帆】
import tensorflow as tf
inputValue = tf.constant([
#1个张量
[
#3行3列2深度
[[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行
[
# 2列
[
# 2深度
[3, 1, -3], [1, -1, 7]
],
[
[-2, 2, -5], [2, 7, 3]
]
],
[
# 2列
[
[-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个3行3列2深度的输入量与3个2行2列2深度的卷积和做卷积

输入量的深度与卷积和的深度必须相同
输出量的深度是卷积核的个数
输出量的个数是输入量的个数
输出量的行列数与padding和stride有关,卷积运算时,在个数和深度两个维度的stride都取1,行和列的stride视情况而定。
张量与卷积的理解,推荐《图解深度学习与神经网络:从张量到TensorFlow实现》_张平这本书
边栏推荐
- Detailed configuration of network security "Splunk" in national vocational college skills competition
- Use Zadig to build a continuous delivery platform from 0 to 1
- List is divided into sets that meet and do not meet conditions (partitioningby)
- EURA欧瑞E1000系列变频器使用PID实现恒压供水功能的相关参数设置及接线
- 目標檢測——Yolo系列
- Interesting! Database is also serverless!
- Niuke programming question -- must brush the string of 101 (brush the question efficiently, draw inferences from one instance)
- RichView 文档中的 ITEM
-
- 独家消息:阿里云悄然推出RPA云电脑,已与多家RPA厂商开放合作
猜你喜欢

Use Zadig to build a continuous delivery platform from 0 to 1

1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack

编译原理复习笔记

Win11怎么关闭开机自启动软件

Develop those things: easycvr cluster device management page function display optimization

升级版手机检测微信工具小程序源码-支持多种流量主模式

uniapp使用腾讯地图选点 没有window监听回传用户的位置信息,怎么处理

运动捕捉系统原理

走进如心小镇,数智化变革连接“未来社区”

Hls4ml entry method
随机推荐
[C language] explain the usage of memset() function in detail
How to turn off the boot auto start software in win11
RichView TRVDocParameters 页面参数设置
On the next generation entrance of the metauniverse -- the implementation of brain computer interface
【let var const】
[multithreading] realize the singleton mode (hungry and lazy) realize the thread safe singleton mode (double validation lock)
使用Zadig从0到1搭建持续交付平台
3D全景模型展示可视化技术演示
300 linear algebra Lecture 4 linear equations
EURA欧瑞E1000系列变频器使用PID实现恒压供水功能的相关参数设置及接线
Entering Ruxin Town, digital intelligence transformation connects "future community"
Vulnerability recurrence - Net ueeditor upload
Detailed explanation and code example of affinity propagation clustering calculation formula based on graph
There are four ways to write switch, you know
Understand the structure in C language in one article
小鸟逃票登机,如何反思,应如何解决,飞机为何怕小鸟?
人脸识别系统 —— OpenCV人脸检测
宅男壁纸大全微信小程序源码-带动态壁纸支持多种流量主
Target detection - Yolo series
What else do you not know about new set()