MATLAB: How to reuse the activations from a layer and then merge it with another coming layer in the same neural network like in the figure

#deeplearning

Best Answer

Hi Cinar,
It is not very clear in figure. if you want to add layers output you can use additionLayer function in MATLAB.
A depth concatenation layer takes inputs that have the same height and width and concatenates them along the third dimension (the channel dimension).
I hope this helps!