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

Fix TextVectorization with output_sequence_length on unknown input shapes #14832

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Jun 29, 2021

Fix TextVectorization with output_sequence_length on unknown input shapes

When output_sequence_length is set, for dense tensor input, we would error
out when the static shape contains None on any dimension. We can fix that
by using the dynamic shape to calculate padding for output_sequence_length.

@google-cla google-cla bot added the cla: yes label Jun 29, 2021
@copybara-service copybara-service bot changed the title Fix calling dataset.map on unbatched data with TextVectorization Fix TextVectorization with output_sequence_length on unknown input shapes Jun 30, 2021
…apes

When output_sequence_length is set, for dense tensor input, we would error
out when the static shape contains None on any dimension. We can fix that
by using the dynamic shape to calculate padding for output_sequence_length.

PiperOrigin-RevId: 382347472
@copybara-service copybara-service bot merged commit bc48a17 into master Jun 30, 2021
@copybara-service copybara-service bot deleted the test_382169202 branch June 30, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant