简体   繁体   English

Tensorflow池化层如何连接到卷积层

[英]Tensorflow how pooling layer is connected to convolutional layer

Is there a way to selectively connect the feature maps of a pooling layer to the feature maps of a (sequential) convolutional layer? 有没有办法将池化层的特征图选择性地连接到(顺序)卷积层的特征图? In the paper "Gradient-Based Learning Applied To Document Recognition" [Proc. 在论文“基于梯度的学习应用于文档识别”中。 of the IEEE, Nov 1998] LeCun et al. [IEEE,1998年11月]。 describe how a subsampling layer is selectively connected to a subsequent convolutional layer. 描述了如何将子采样层选择性地连接到随后的卷积层。 In the basic TF example (A guide to TF layers: Building a CNN) conv2 is connected to pool1 as: 在基本TF示例(TF层指南:构建CNN)中,conv2与pool1的连接方式如下:

conv2 = tf.layers.conv2d(inputs=pool1, ... conv2 = tf.layers.conv2d(inputs = pool1,...

however, I'd like to selectively connect pool1 to conv2 in a similar way the LeCun paper connects S2 to C3 (see Table 1). 但是,我想有选择地将pool1连接到conv2,就像LeCun论文将S2连接到C3一样(请参见表1)。

Thanks! 谢谢!

I haven't examined this paper. 我没有看过这篇论文。 Just want to share that you can manipulate your pool1 tensor any way your like before passing it to the conv2d layer, eg split it by two and connect each one to its own conv layer. 想和大家分享,你可以操纵你的pool1张任何方式你喜欢它传递给前conv2d层,例如,通过分成两部分,它和每一个连接到自己的CONV层。

For instance, that's what LSTM cell is doing (see the implementation here ). 例如,这就是LSTM单元正在做的事情(请参阅此处的实现)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在TensorFlow中为卷积层正确创建批量标准化层? - How to correctly create a batch normalization layer for a convolutional layer in TensorFlow? 如何使用Tensorflow在卷积网络中的完全连接层之后添加回归头? - How to add a regression head after the fully connected layer in convolutional network using Tensorflow? 张量流中未完全连接的层 - Not fully connected layer in tensorflow 如何将不同形状的卷积层输出合并为固定形状以传递给全连接层 - how to pool different shaped convolutional layer outputs to a fixed shape to pass for Fully connected layer 汇聚层与卷积层中使用填充的对比 - Pooling Layer vs. Using Padding in Convolutional Layers 卷积生成对抗网络判别器的output是如何工作的,可以有全连接层吗? - How does the output of the Discriminator of a Convolutional Generative Adversarial Network work, can it have a Fully Connected Layer? 如何将中间卷积层的结果存储在 tensorflow 中以供以后处理? - How do I store an intermediate convolutional layer's result in tensorflow for later processing? Python keras如何将密集层转换为卷积层 - Python keras how to transform a dense layer into a convolutional layer 如何在keras中获取卷积层的特征图 - How to get featuremap of convolutional layer in keras 如何理解卷积层 output 形状 - how to understand the convolutional layer output shape
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM