how can i make this layers?

especially i can't figure out how to get the skip convolution part,
i made like this:
clc; clear;
Downsampling_blk = [
batchNormalizationLayer('Name','batchnorm_1')
reluLayer('Name','relu_1')
convolution2dLayer(3, 32, 'Stride', 2, 'Name','conv_1')
batchNormalizationLayer('Name','batchnorm_2')
reluLayer('Name','relu_2')
convolution2dLayer(3, 32, 'Stride', 1, 'Name','conv_2')
additionLayer(2,'Name','add');
];
skipConv = convolution2dLayer(3, 32,'Stride', 2,'Name','skipConv');
%skipConv = convolution2dLayer(3, 32,'Stride', 2,'Name','skipConv');
lgraph = layerGraph(Downsampling_blk); lgraph = addLayers(lgraph,skipConv);
lgraph = connectLayers(lgraph,'skipConv','add');
figure plot(lgraph)

Respuestas (0)

La pregunta está cerrada.

Preguntada:

el 7 de Ag. de 2018

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by