Skip to content

Commit 9099f79

Browse files
kimishpatelfacebook-github-bot
authored andcommitted
enable vit quantization (#417)
Summary: Pull Request resolved: #417 After 0919 nightly of pytorch vit linear layers should be quantized Reviewed By: jerryzh168, kirklandsign Differential Revision: D49438891 fbshipit-source-id: a5cf5186d4a724cd3316c72f572da661b182ea20
1 parent aa247da commit 9099f79

File tree

1 file changed

+1
-0
lines changed
  • examples/recipes/xnnpack_optimization

1 file changed

+1
-0
lines changed

examples/recipes/xnnpack_optimization/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ class OptimizationOptions(object):
2424
), # TODO[T163161310]: takes a long time to export to exec prog and save inception_v4 quantized model
2525
"w2l": OptimizationOptions(False, True),
2626
"dl3": OptimizationOptions(True, False),
27+
"vit": OptimizationOptions(True, False),
2728
}

0 commit comments

Comments
 (0)