Formula for Getting o/p dimension in Transpose Convolution

This is from DLS Course 4 (ConvNets). Transposed convolutions are introduced in Week 3 as part of the discussion about the U-Net Semantic Segmentation topic.

Here’s a thread which discusses the formula for computing the output size of a transposed convolution.