Skip to content

Conversation

@ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Jan 7, 2022

What does this PR do?

This line will fail since there is token_type_ids in inputs but get_text_features has no such param:

Since token_type_ids appears in other places in modeling_vision_text_dual_encoder.py, I think it's reasonable to add it to get_text_features.

Who can review?

@patil-suraj

Copy link
Contributor

@patil-suraj patil-suraj left a comment

Choose a reason for hiding this comment

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

Good catch! Thank you for fixing this!

You are doing an awesome job with contributions, thanks a lot!

@patil-suraj patil-suraj merged commit 623b4f7 into huggingface:master Jan 7, 2022
@ydshieh ydshieh deleted the fix_doc_example_013 branch May 5, 2022 10:35
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.

2 participants