Skip to content

Conversation

@sgugger
Copy link
Collaborator

@sgugger sgugger commented Dec 12, 2022

What does this PR do?

This is a prime example of why we should never rely on Python bool conversion magic, as it often fails with array-like types.
Fixes #19136

@sgugger sgugger requested a review from LysandreJik December 12, 2022 14:36
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 12, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Oh yeah nice catch!

@sgugger sgugger merged commit a450789 into main Dec 12, 2022
@sgugger sgugger deleted the disambiguate_required_input branch December 12, 2022 18:13
mpierrau pushed a commit to mpierrau/transformers that referenced this pull request Dec 15, 2022
…ingface#20731)

* Disambiguate test for required_input in tokenization base file.

* Add test for size
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.

if not something is ambiguous

4 participants