yx feng
yx feng

Reputation: 11

Is there anyway to use padding_mode='circular' in nn.ConvTranspose2d?

I'm a beginner of DCGAN with Pytorch. I found that nn.ConvTranspose2d did not support padding_mode='circular' even in 2024. However, nn.Conv2d supports circular padding mode and works well.

nn.ConvTranspose2d( nz, ngf * 16, 4, 1, 0, bias=False, padding_mode='circular') 

The error is shown as follows,

ValueError: Only "zeros" padding mode is supported for ConvTranspose2d

Is there any way to use circular padding mode in nn.ConvTranspose2d?

Upvotes: 1

Views: 101

Answers (0)

Related Questions