How to use Reduction Layer ??

240 views
Skip to first unread message

Julian Kolarz

unread,
Feb 2, 2017, 5:37:36 AM2/2/17
to Caffe Users
Hi all,
i want to use the reduction layer, but couldn't find an example on how to implement it. So my output is a 1x18x18 matrix and i want to sum (or absolute sum) all values to on scalar so that the output is 1x1x1.

Here is the documentation for this layer, but there is no example how to use it. http://caffe.berkeleyvision.org/doxygen/classcaffe_1_1ReductionLayer.html 
Could anybody give me an example?

Thank you
Julian

Przemek D

unread,
Feb 3, 2017, 8:18:29 AM2/3/17
to Caffe Users
Per the help pages by J.R. Williford, I suppose you would use it somewhat like this:
layer{
  name
: "my_reduction_layer"
  type
: "Reduction"
  bottom
: "my_1x18x18_blob"
  top
: "my_1x1x1_blob"
  reduction_param
{
    operation
: SUM
 
}
}
If this works, please let me know and I'll try to get this example added to the documentation.
Reply all
Reply to author
Forward
0 new messages