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

[TFWav2Vec2Model] Fix input shapes in TFWav2Vec2WeightNormConv1D #14319

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

anton-l
Copy link
Member

@anton-l anton-l commented Nov 8, 2021

What does this PR do?

Context
After updating to TF 2.7 the tests started failing with ValueError('One of the dimensions in the output is <= 0...') which is caused by the recently added check to keras.layers.Conv.build() https://github.com/keras-team/keras/blob/v2.7.0/keras/layers/convolutional.py#L197

This PR fixes the input shapes passed during TFWav2Vec2WeightNormConv1D.build() to account for padding.

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@anton-l anton-l merged commit df1f94e into huggingface:master Nov 8, 2021
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants