Skip to content

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Mar 11, 2022

What does this PR do?

Fix doc example.

Without this fix, I get the following error

            batch_size = inputs_tensor.shape[0]
          File "/home/yih_dar_huggingface_co/transformers/src/transformers/tokenization_utils_base.py", line 253, in __getattr__
            raise AttributeError
        AttributeError

where inputs_tensor has type BatchEncoding.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 11, 2022

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

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 fixing!

@ydshieh ydshieh merged commit cb5e50c into huggingface:master Mar 11, 2022
@ydshieh ydshieh deleted the fix_doc_example_032 branch March 11, 2022 20:21
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