# Output\_padding and Padding\_mode not found in ConvTranspose function

**URL:** <https://discourse.julialang.org/t/output-padding-and-padding-mode-not-found-in-convtranspose-function/74713>\
**Category:** General Usage\
**Tags:** question, flux\
**Created:** [January 16, 2022, 6:37pm UTC](https://discourse.julialang.org/t/output-padding-and-padding-mode-not-found-in-convtranspose-function/74713 "2022-01-16T18:37:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emory\_Raphael](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/emory_raphael/32/32617_2.png) [@Emory\_Raphael](https://discourse.julialang.org/u/Emory_Raphael)\
**Post date:** [January 16, 2022, 6:37pm UTC](https://discourse.julialang.org/t/output-padding-and-padding-mode-not-found-in-convtranspose-function/74713/1 "2022-01-16T18:37:36Z")

</div>

Hi, I am attempting to reimplement a version of CycleGan from pytorch to julia. But I have a doubt about how to use a package from Flux.

Looking at the example code from Pytorch, there is a property in [ConvTranspose2d](https://pytorch.org/docs/1.9.1/generated/torch.nn.ConvTranspose2d.html) called output\_padding, but there is no such thing in [Flux.ConvTranspose](https://fluxml.ai/Flux.jl/stable/models/layers/#Flux.ConvTranspose). Because of this, my output size is not correct.

Another property that I couldn’t find was padding\_mode, nor in Conv or in ConvTranspose, is there a way to make a work around? How should I treat this one?

I even try to use Flux.SamePad() to correct this issue, and works for some sizes as (100,100) but (3,3) is not working.

Thanks in advanced.
