首页 > 解决方案 > Caffe的卷积层中bias_filler类型“constant”的默认值是多少?

问题描述

在下面的示例层中,Caffe 的卷积层中bias_filler 类型“constant”的默认值是多少?

layer {
  name: "conv1"
  type: "Convolution"
  bottom: "data"
  top: "conv1"
  convolution_param {
    num_output: 12
    kernel_size: 3
    stride: 2
    weight_filler {
      type: "xavier"
    }
    bias_filler {
      type: "constant"
    }
  }
}

我在http://caffe.berkeleyvision.org/tutorial/layers/convolution.html的文档中找不到答案。

标签: image-processingmachine-learningcomputer-visionconv-neural-networkcaffe

解决方案


您可以在文件中找到很多文档/信息caffe.proto。该文件描述了 caffe 的 prototxt/binaryproto 的语法。

寻找常量填充的原始定义(第 46 行):

optional float value = 2 [default = 0]; // the value in constant filler

可以看到默认值为 0。


推荐阅读