Skip to content

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