Skip to content

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
@michaelbenayoun michaelbenayoun requested a review from sgugger May 11, 2022 16:29
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