Caffe - 如何使用还原层?

Bib*_*iba 2 machine-learning reduction computer-vision deep-learning caffe

我有一个关于咖啡减少层的问题。我还没有找到任何关于如何在我的 .prototxt 文件中使用该层的示例。因此,如果有人能给我一个如何使用该层的简短示例,我将不胜感激。

这是文档:http://caffe.berkeleyvision.org/doxygen/classcaffe_1_1ReductionLayer.html,但没有给出示例:-/

我想使用这一层将 1x18x18 的输出矩阵减少到一个标量值。所以我想要这个矩阵的绝对和。

Sha*_*hai 5

尝试:

layer {
  name: "reduction"
  type: "Reduction"
  bottom: "in"
  top: "out"
  reduction_param {
    axis: 0 # reduce all dims after first
    operation: ASUM  # use absolute sum
  }
}
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请参阅caffe.proto新的caffe.help