本文主要是介绍Caffe Prototxt 特殊层系列:Concat Layer,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Concat Layer将多个bottom按照需要联结一个top
一般特点是:多个输入一个输出,多个输入除了axis指定维度外,其他维度要求一致
message ConcatParameter {// The axis along which to concatenate -- may be negative to index from the// end (e.g., -1 for the last axis). Other axes must have the// same dimension for all the bottom blobs.// By default, ConcatLayer concatenates blobs along the "channels" axis (1). //默认按通道联结optional int32 axis = 2 [default = 1];// DEPRECATED: alias for "axis" -- does not support negative indexing.optional uint32 concat_dim = 1 [default = 1];
}
Concat Layer在prototxt里面的书写:
layer {name: "concat"bottom: "in1" #N*32*H*Wbottom: "in2" #N*16*H*Wtop: "out" #N*48*H*Wtype: "Concat"concat_param {axis: 1//default = 1 按通道联结}
}
这篇关于Caffe Prototxt 特殊层系列:Concat Layer的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!