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
    }
  }
}

猜你喜欢

转载自www.cnblogs.com/houjun/p/9912452.html