版权声明:未经博主允许,不得转载! https://blog.csdn.net/u011681952/article/details/86156848
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*W
bottom: "in2" #N*16*H*W
top: "out" #N*48*H*W
type: "Concat"
concat_param {
axis: 1//default = 1 按通道联结
}
}