ViT and Swin symbolic tracing with torch.fx (#17182)

* Support tracing for ViT

* Swin support

* Fix copies

* Fix type annotation issue

* Removed unused import
This commit is contained in:
Michael Benayoun
2022-05-12 10:42:27 +02:00
committed by GitHub
parent 1a688709b3
commit 8c7481f35c
11 changed files with 70 additions and 35 deletions

View File

@@ -155,6 +155,7 @@ class ViTModelTest(ModelTesterMixin, unittest.TestCase):
if is_torch_available()
else ()
)
fx_compatible = True
test_pruning = False
test_resize_embeddings = False