feat(src/layer): add vision_transformer benchmark#3730
Merged
nihui merged 21 commits intoTencent:masterfrom May 17, 2022
Merged
feat(src/layer): add vision_transformer benchmark#3730nihui merged 21 commits intoTencent:masterfrom
nihui merged 21 commits intoTencent:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3730 +/- ##
==========================================
+ Coverage 93.33% 93.35% +0.01%
==========================================
Files 672 674 +2
Lines 171577 171980 +403
==========================================
+ Hits 160146 160556 +410
+ Misses 11431 11424 -7 ☔ View full report in Codecov by Sentry. |
…ion-transformer
…o/ncnn into add-vision-transformer
|
This pull request introduces 1 alert when merging eb7d4b2 into f14388a - view on LGTM.com new alerts:
|
Contributor
Author
|
@nihui test_squeezenet 的错,是要我重造模型? 我也没改涉及 sqz 的东西。 |
Contributor
Author
|
@nihui 我没有要改的了。 |
Contributor
Author
|
@nihui 好人给 review 一下呗。 |
Member
这套东西,其实就是一个 nn.Linear ,被onnx拆散了 😆 |
Contributor
Author
|
@nihui 改好啦,扔掉了 gather; ViT.param 也小了很多。 |
Member
|
Thanks for your contribution ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
支持 vision_transformer。
onnx2ncnn.cpp增加了转换 GELU 和 Crop速度测试 on 8 核 i5 CPU,330MB 大模型。
vision_transformer min = 3236.20 max = 3541.62 avg = 3403.61