mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Optimize ConvTranspose2d stride description (#150819)
Fixes #150775 ## Test Result ### Before  ### After  Pull Request resolved: https://github.com/pytorch/pytorch/pull/150819 Approved by: https://github.com/jbschlosser
This commit is contained in:
parent
183bca41de
commit
d94cc0e994
|
|
@ -998,7 +998,10 @@ class ConvTranspose2d(_ConvTransposeNd):
|
|||
|
||||
On certain ROCm devices, when using float16 inputs this module will use :ref:`different precision<fp16_on_mi200>` for backward.
|
||||
|
||||
* :attr:`stride` controls the stride for the cross-correlation.
|
||||
* :attr:`stride` controls the stride for the cross-correlation. When stride > 1, ConvTranspose2d inserts zeros between input
|
||||
elements along the spatial dimensions before applying the convolution kernel. This zero-insertion operation is the standard
|
||||
behavior of transposed convolutions, which can increase the spatial resolution and is equivalent to a learnable
|
||||
upsampling operation.
|
||||
|
||||
* :attr:`padding` controls the amount of implicit zero padding on both
|
||||
sides for ``dilation * (kernel_size - 1) - padding`` number of points. See note
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user