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

[WIP] add has_attentions as done in PyTorch side #16259

Merged

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Mar 18, 2022

What does this PR do?

My original intention is to clean up TFModelTesterMixin.test_pt_tf_model_equivalence. This is done in this first commit.
Would like to hear from @sgugger to see if it is better to apply the same change found in #15909 here.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Mar 18, 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 adding this! We should be consistent between the two testers and this helps in this case.

@ydshieh
Copy link
Collaborator Author

ydshieh commented Mar 18, 2022

So I will merge as it is, and work in a follow up PR to use has_attentions to other (TF) test methods like test_model_outputs_equivalence etc.

@ydshieh ydshieh merged commit f466936 into huggingface:master Mar 19, 2022
@ydshieh ydshieh deleted the tiny_cleanup_pt_tf_equivalence_test_in_tf branch March 19, 2022 10:44
FrancescoSaverioZuppichini pushed a commit that referenced this pull request Mar 24, 2022
)

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
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.

3 participants