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

implementing tflxmertmodel integration test #12497

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

sadakmed
Copy link
Contributor

@sadakmed sadakmed commented Jul 4, 2021

What does this PR do?
this PR implement an integration test for TFLxmertmodel as requested in #9954

@LysandreJik

@sadakmed sadakmed closed this Jul 4, 2021
@sadakmed sadakmed reopened this Jul 5, 2021
@sadakmed sadakmed changed the title Tflxmerttest implementing tflxmertmodel integration test Jul 5, 2021
@LysandreJik
Copy link
Member

I believe your version of the code quality tools isn't up to date - can you try running the following at the root of your clone: pip install -e .[quality] -U to update your tools?

@sadakmed
Copy link
Contributor Author

sadakmed commented Jul 5, 2021

Hi @LysandreJik Yep It was my black version

]
]
)
tf.debugging.asset_near(output[:, :3, :3], expected_slice, atol=1e-4)
Copy link
Member

Choose a reason for hiding this comment

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

This should be assert_near

Suggested change
tf.debugging.asset_near(output[:, :3, :3], expected_slice, atol=1e-4)
tf.debugging.assert_near(output[:, :3, :3], expected_slice, atol=1e-4)

Comment on lines 766 to 911
[self.model_tester.num_attention_heads, encoder_key_length, self.model_tester.num_visual_features],
[
self.model_tester.num_attention_heads,
encoder_key_length,
self.model_tester.num_visual_features,
],
Copy link
Member

Choose a reason for hiding this comment

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

There's a lot of style changes in your PR - do you think you could only do the changes relative to the code you're adding? Thank you!

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Great, thanks @sadakmed!

@LysandreJik LysandreJik merged commit 3fd8577 into huggingface:master Jul 6, 2021
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