Deep learning framework by BAIR
Created by
Yangqing Jia
Lead Developer
Evan Shelhamer
Concat
./include/caffe/layers/concat_layer.hpp
./src/caffe/layers/concat_layer.cpp
./src/caffe/layers/concat_layer.cu
n_i * c_i * h * w
for each input blob i from 1 to K.axis = 0
: (n_1 + n_2 + ... + n_K) * c_1 * h * w
, and all input c_i
should be the same.axis = 1
: n_1 * (c_1 + c_2 + ... + c_K) * h * w
, and all input n_i
should be the same.Sample
layer {
name: "concat"
bottom: "in1"
bottom: "in2"
top: "out"
type: "Concat"
concat_param {
axis: 1
}
}
The Concat
layer is a utility layer that concatenates its multiple input blobs to one single output blob.
ConcatParameter concat_param
)
axis
[default 1]: 0 for concatenation along num and 1 for channels../src/caffe/proto/caffe.proto
):