Skip to content

Update Swin MIM output class#22893

Merged
alaradirik merged 2 commits intohuggingface:mainfrom
alaradirik:swin-mim-output
Apr 21, 2023
Merged

Update Swin MIM output class#22893
alaradirik merged 2 commits intohuggingface:mainfrom
alaradirik:swin-mim-output

Conversation

@alaradirik
Copy link
Contributor

What does this PR do?

  • Replaces incorrectly named logits output of SwinMaskedImageModelingOutput and SwinV2MaskedImageModelingOutput classes with the reconstruction attribute
  • Sets logits as a property for backward compatibility and adds a deprecation warning

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • [X ] Did you read the contributor guideline,
    Pull Request section?
  • [X ] Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • [X ] Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

@alaradirik alaradirik requested a review from amyeroberts April 20, 2023 15:11
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 20, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@amyeroberts amyeroberts 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 updating!

@alaradirik alaradirik merged commit 3db2e40 into huggingface:main Apr 21, 2023
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
Updates Swin MIM output class to match other masked image modeling outputs
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