Skip to content

Improve forward signature test#27729

Merged
ArthurZucker merged 4 commits into
huggingface:mainfrom
NielsRogge:feature/improve_forward_signature
Dec 4, 2023
Merged

Improve forward signature test#27729
ArthurZucker merged 4 commits into
huggingface:mainfrom
NielsRogge:feature/improve_forward_signature

Conversation

@NielsRogge

Copy link
Copy Markdown
Collaborator

What does this PR do?

As a follow-up of #27681, I'd like to make sure that every new backbone that is added to the library follows the same API. Hence, this PR extends the test_forward_signature test to make sure this is tested.

Rather than only checking the first keyword argument, it checks all of them.

@ArthurZucker ArthurZucker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for being thorough with this refactor 🤗

Comment thread tests/test_modeling_common.py
NielsRogge and others added 2 commits November 28, 2023 08:44
Co-authored-by: Arthur <48595927+ArthurZucker@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.

2 participants