当前位置:网站首页>tf. keras. layers. MaxPooling? D function
tf. keras. layers. MaxPooling? D function
2022-04-23 02:56:00 【Live up to your youth】
Maximum pool layer It is usually used to downsample data , Remove redundant information 、 Compress features .
1、tf.keras.layers.MaxPooling1D function
The function prototype
tf.keras.layers.MaxPool1D(pool_size=2,
strides=None,
padding='valid',
data_format='channels_last',
**kwargs
)
Function description

Parameters pool_size Indicates the size of the pooled window , Parameters strides Represents the moving step size , The default is None, Represents and pool_size It's the same size .
Be careful ,padding The meaning of parameters and the meaning of convolution layer padding The meaning of parameters is a little different , When padding by VALID, That is, when there is no filling , The size of the output tensor is ( The size of the input tensor -pool_size + 1 )/ strides, When padding by SAME when , The size of the output tensor is The size of the input tensor / strides.
2、tf.keras.layers.MaxPooling2D function
The function prototype
tf.keras.layers.MaxPool2D(pool_size=(2, 2),
strides=None,
padding='valid',
data_format=None,
**kwargs
)
Function description

The process of two-dimensional maximum pooling is shown in the figure above . Where the size of the input matrix is 4×4,pool_size by 2×2,strides by 2,padding The method is no filling , The size of the output matrix is 2×2. It can be seen that , The pooled input matrix , Only the higher part of the eigenvalue is retained . in other words , The pooling operation reduces the sampling rate of the image .
Parameters here pool_size It's a tuple (2, 2), Indicates that the size of the pooled window is 2×2.
3、tf.keras.layers.MaxPooling3D function
The function prototype
tf.keras.layers.MaxPool3D(pool_size=(2, 2, 2),
strides=None,
padding='valid',
data_format=None,
**kwargs
)
Function description

The usage scene of 3D pool layer is generally multi frame ( single / Multichannel ) Of frame data ( Video frame ), And the output is also multi frame , Sequential pair continuous k The entire channel of the frame performs the pooling operation at the same time ;
The meaning of each parameter of the function is the same as MaxPooling2D、MaxPooling1D The meaning of each parameter is similar .
版权声明
本文为[Live up to your youth]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220657127294.html
边栏推荐
- The penultimate K nodes in jz22 linked list
- L2-006 树的遍历(中后序确定二叉树&层序遍历)
- Rhcsa day 3 operation
- Restart redis
- Learn regular expression options, assertions
- php+mysql對下拉框搜索的內容修改
- Interim summary (Introduction + application layer + transportation layer)
- C语言 171. 最近回文数
- AC380V drop 5v12v24v200ma, UHV non isolated chip IC scheme
- Table space capacity query and expansion of Oracle Database
猜你喜欢

Modify the content of MySQL + PHP drop-down box

Processes and threads

Cloud computing learning 1 - openstack cloud computing installation and deployment steps with pictures and texts (Xiandian 2.2)

1215_ Hello world used by scons

L2-006 树的遍历(中后序确定二叉树&层序遍历)

基于多态的职工管理系统源码与一些理解

国产轻量级看板式Scrum敏捷项目管理工具
![Niuke white moon race 5 [problem solving mathematics field]](/img/be/ca059bd1c84eaaaefa3266f9119a6b.png)
Niuke white moon race 5 [problem solving mathematics field]

Guangcheng cloud service can fill in a daily report regularly every day

Airtrack cracking wireless network password (Dictionary running method)
随机推荐
Error installing Mongo service 'mongodb server' on win10 failed to start
JZ35 replication of complex linked list
基于ele封装下拉菜单等组件
Winsock programming interface experiment: implementation of ipconfig
Store consumption SMS notification template
Modification du contenu de la recherche dans la boîte déroulante par PHP + MySQL
Specific field information of MySQL export table (detailed operation of Navicat client)
Codeforces round 784 (Div. 4) (a - H)
Liunx foundation - zabbix5 0 monitoring system installation and deployment
Face longitude:
JS using the parameters of art template
The usage of case when and select case when is very easy to use
Log4j知识点记录
win查看端口占用 命令行
Kubernetes - Introduction to actual combat
The interface request takes too long. Jstack observes the lock holding
Configuring Apache Web services for servers such as Tianyi cloud
Interim summary (Introduction + application layer + transportation layer)
ROP Emporium x86_64 7~8题
[unity3d] rolling barrage effect in live broadcasting room