Here I want to construct a local fully connected layer functioning as follows, I am not sure if I could directly use current existing layers to construct this layer, or I have to code my own layer cpp.
Let's say the bottom of this local fully connected layer is the pool5 layer ouput in alexNet as 6x6x256 (256 is the number of filters), the inner product of this local fully connected layer happens to each feature map 6x6 individually, rather than to the vectorized 6x6x256 in a whole, so the output of this local fully connected layer is 1x1x256 (it is possible we have more than 256 output number for sure, it is dependent on the number of nodes at the local FC layer). On the other hand, this local fully connected layer also could be considered as a weighted pooling. But does the weights of this weighted pooling could be learned as the inner product weights in fc layer?
Thanks a lot for the help!
Here I want to construct a local fully connected layer functioning as follows, I am not sure if I could directly use current existing layers to construct this layer, or I have to code my own layer cpp.
Let's say the bottom of this local fully connected layer is the pool5 layer ouput in alexNet as 6x6x256 (256 is the number of filters), the inner product of this local fully connected layer happens to each feature map 6x6 individually, rather than to the vectorized 6x6x256 in a whole, so the output of this local fully connected layer is 1x1x256 (it is possible we have more than 256 output number for sure, it is dependent on the number of nodes at the local FC layer). On the other hand, this local fully connected layer also could be considered as a weighted pooling. But does the weights of this weighted pooling could be learned as the inner product weights in fc layer?
Thanks a lot for the help!