Transposing a convolution

How can I transpose a convolution? I know there is nn.ConvTranspose1d, 2d and 3d which takes size specifications and creates a randomly initialized transposed convolution, but is there a way to obtain the transpose of an existing conv module?