caffe Python API 之InnerProduct

net.fc3 = caffe.layers.InnerProduct(net.pool1,
                                    num_output=1024,
                                    weight_filler=dict(type='xavier'),
                                    bias_filler=dict(type='constant',value=0))

输出:
layer {
  name: "fc3"
  type: "InnerProduct"
  bottom: "pool1"
  top: "fc3"
  inner_product_param {
    num_output: 1024
    weight_filler {
      type: "xavier"
    }
    bias_filler {
      type: "constant"
      value: 0.0
    }
  }
}

 

posted @ 2018-11-06 00:10  HOU_JUN  阅读(462)  评论(0编辑  收藏  举报