Have you looked at the documentation for this module? In particular, the second note under nn.ConvTranspose2d has a lot of information on output_padding.
https://pytorch.org/docs/stable/nn.html#torch.nn.ConvTranspose2d 196