码迷,mamicode.com
首页 > 其他好文 > 详细

内积层和全连接层是一样的

时间:2016-02-01 14:20:44      阅读:269      评论:0      收藏:0      [点我收藏+]

标签:

http://caffe.berkeleyvision.org/tutorial/layers.html#data-layers

The InnerProduct layer (also usually referred to as the fully connected layer) treats the input as a simple vector and produces an output in the form of a single vector (with the blob’s height and width set to 1).

 

就是定义输出的个数,然后就全部连接所有的滤波器的所有通道(特征子图)的所有元素。

使用方法:(可以看出它的计算方法)

********************************************************

Parameters (InnerProductParameter inner_product_param)
Required
num_output (c_o): the number of filters
Strongly recommended
weight_filler [default type: ‘constant‘ value: 0]


Optional
bias_filler [default type: ‘constant‘ value: 0]
bias_term [default true]: specifies whether to learn and apply a set of additive biases to the filter outputs


Input
n * c_i * h_i * w_i


Output
n * c_o * 1 * 1

内积层和全连接层是一样的

标签:

原文地址:http://www.cnblogs.com/Wanggcong/p/5174660.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!