Skip to content

[Fix] Fix mlp_ratio type in Swin Transformer#1274

Merged
MeowZheng merged 1 commit intoopen-mmlab:masterfrom
MengzhangLI:fix_swin_mlp_ratio
Feb 9, 2022
Merged

[Fix] Fix mlp_ratio type in Swin Transformer#1274
MeowZheng merged 1 commit intoopen-mmlab:masterfrom
MengzhangLI:fix_swin_mlp_ratio

Conversation

@MengzhangLI
Copy link
Copy Markdown
Contributor

In more and more cases of Transformer models, it may use float mlp_ratio such as 0.25 or something else.

It would be simply realized by int( ).

@MengzhangLI MengzhangLI changed the title [Fix] Fix type in Swin Transformer [Fix] Fix mlp_ratio type in Swin Transformer Feb 9, 2022
@MengzhangLI MengzhangLI self-assigned this Feb 9, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 9, 2022

Codecov Report

Merging #1274 (ece92a5) into master (b4314f9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1274   +/-   ##
=======================================
  Coverage   90.26%   90.26%           
=======================================
  Files         130      130           
  Lines        7553     7553           
  Branches     1257     1257           
=======================================
  Hits         6818     6818           
  Misses        528      528           
  Partials      207      207           
Flag Coverage Δ
unittests 90.26% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/models/backbones/swin.py 83.62% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4314f9...ece92a5. Read the comment docs.

@MeowZheng MeowZheng merged commit b163101 into open-mmlab:master Feb 9, 2022
@MengzhangLI MengzhangLI deleted the fix_swin_mlp_ratio branch February 16, 2022 11:11
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
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.

2 participants