Hi BeneFr,
yes your formular is right, in the docs of the Conv2d-Layer 8 you can find the formular too  .
You can also print the shape after the last convolution, if you don’t want to calculate the output shape ^^