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

ViT and Swin symbolic tracing with torch.fx #17182

Merged
merged 5 commits into from May 12, 2022

Conversation

michaelbenayoun
Copy link
Member

@michaelbenayoun michaelbenayoun commented May 11, 2022

What does this PR do?

This PR adds support for ViT and Swin symbolic tracing with torch.fx.

Fixes #16320

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 11, 2022

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

@michaelbenayoun michaelbenayoun changed the title Fx vit swin ViT and Swin symbolic tracing with torch.fx May 11, 2022
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.

LGTM, thanks for working on this!

@michaelbenayoun michaelbenayoun merged commit 8c7481f into huggingface:main May 12, 2022
@michaelbenayoun michaelbenayoun deleted the fx_vit_swin branch May 12, 2022 08:42
elusenji pushed a commit to elusenji/transformers that referenced this pull request Jun 12, 2022
* Support tracing for ViT

* Swin support

* Fix copies

* Fix type annotation issue

* Removed unused import
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.

Can we support the trace of ViT and Swin-Transformer based on torch.fx?
3 participants