Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output_padding argument in Conv1DTranspose #19909

Open
olive380 opened this issue Jun 24, 2024 · 0 comments
Open

output_padding argument in Conv1DTranspose #19909

olive380 opened this issue Jun 24, 2024 · 0 comments

Comments

@olive380
Copy link

Surprisingly, with TensorFlow 2.16, it is no more possible to set output_padding=0 when using Conv1DTranspose. This feature was allowed in previous versions of TensorFlow (e.g. 2.15) and is still necessary. It appears that this issue is related to the way Keras 3.0 is now managing the output_padding argument.

As reminder, in previous versions of Keras, the behaviour was totally different if output_padding was omitted or set to zero.
If you are not aware of this, please have a look at the deconv_output_length method defined in /tensorflow/python/keras/utils/conv_utils.py available here.

To reproduce the issue, please use the following python script models.zip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants