Skip to content

Commit

Permalink
feat(codebase/cls): support vision_transformer (open-mmlab#403)
Browse files Browse the repository at this point in the history
* feat(codebase/cls): support vision_transformer

* style(onnx2ncnn): format cpp code, upgrade mmcls version

* fix(CI): upgrade mmcv to 1.4.2

* fix(onnx2ncnn): offset out of range during fuse conv reshape

* docs(vision_transformer.py): update VisionTransformer desc

* docs(onnx2ncnn.cpp): add more comment

* feat(onnx2ncnn.cpp): revert fuse weight

* docs(onnx2ncnn.cpp): add more comment

* test(vision_transformer): add test case

* refactor(vision_transformer.py): use symbol rewrite layer_norm

* refactor(vision_transformer): fix review

* fix(attention): add missing files
  • Loading branch information
tpoisonooo committed Apr 26, 2022
1 parent 01a44c0 commit 2c2d1e5
Show file tree
Hide file tree
Showing 13 changed files with 668 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
python-version: [3.7]
torch: [1.8.0, 1.9.0]
mmcv: [1.4.0]
mmcv: [1.4.2]
include:
- torch: 1.8.0
torch_version: torch1.8
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
matrix:
python-version: [3.7]
torch: [1.9.0+cu102]
mmcv: [1.4.0]
mmcv: [1.4.2]
include:
- torch: 1.9.0+cu102
torch_version: torch1.9
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
matrix:
python-version: [3.7]
torch: [1.8.0+cu111]
mmcv: [1.4.0]
mmcv: [1.4.2]
include:
- torch: 1.8.0+cu111
torch_version: torch1.8
Expand Down
Loading

0 comments on commit 2c2d1e5

Please sign in to comment.