Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LayerNorm in Transformer #81

Merged
merged 4 commits into from
Mar 18, 2021
Merged

Remove LayerNorm in Transformer #81

merged 4 commits into from
Mar 18, 2021

Conversation

zhiqwang
Copy link
Owner

@zhiqwang zhiqwang commented Mar 18, 2021

As the result shows in upstream ultralytics/yolov5#2329 (comment), let's remove the LN in Transformer.

@zhiqwang zhiqwang added the enhancement New feature or request label Mar 18, 2021
@codecov
Copy link

codecov bot commented Mar 18, 2021

Codecov Report

Merging #81 (6fd8979) into master (293520e) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #81   +/-   ##
=======================================
  Coverage   81.79%   81.79%           
=======================================
  Files           8        8           
  Lines         736      736           
=======================================
  Hits          602      602           
  Misses        134      134           
Flag Coverage Δ
unittests 81.79% <100.00%> (ø)

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

Impacted Files Coverage Δ
test/test_models.py 94.47% <100.00%> (ø)

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 293520e...6fd8979. Read the comment docs.

@zhiqwang zhiqwang merged commit 2332a2c into master Mar 18, 2021
@zhiqwang zhiqwang deleted the update-transformer branch March 18, 2021 17:01
@mx2013713828
Copy link

can you explain why remove layernorm cause a better result?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants