N
N
Nikita2022-03-21 12:24:18
Mathematics
Nikita, 2022-03-21 12:24:18

How to calculate layer size after convolution in Convolutional Neural Networks?

There is an array of size A . Next, this array is convolved with step B and C filters, each of size D . How can you express the size of the array in terms of all these parameters after the convolution operation has been performed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2022-03-21
@gth-other

int out_sx = (int)Math.Floor((prevBlock.SizeX + pad * 2.0 - coreBlock.SizeX) / stride + 1);
int out_sy = (int)Math.Floor((prevBlock.SizeY + pad * 2.0 - coreBlock.SizeY) / stride + 1);

Block = new Block(out_sx, out_sy, coreBlock.Depth);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question