1. 程式人生 > >caffe Python API 之InnerProduct

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