Skip to content

Disambiguate test for required_input in tokenization base file.#20731

Merged
sgugger merged 2 commits into
mainfrom
disambiguate_required_input
Dec 12, 2022
Merged

Disambiguate test for required_input in tokenization base file.#20731
sgugger merged 2 commits into
mainfrom
disambiguate_required_input

Conversation

@sgugger

@sgugger sgugger commented Dec 12, 2022

Copy link
Copy Markdown
Collaborator

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

HuggingFaceDocBuilderDev commented Dec 12, 2022

Copy link
Copy Markdown

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

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

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

3 participants