-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Fix] Revise override in init_cfg #930
Conversation
Codecov Report
@@ Coverage Diff @@
## master #930 +/- ##
==========================================
+ Coverage 64.62% 64.68% +0.05%
==========================================
Files 148 151 +3
Lines 9354 9604 +250
Branches 1698 1760 +62
==========================================
+ Hits 6045 6212 +167
- Misses 2962 3036 +74
- Partials 347 356 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
tests/test_cnn/test_weight_init.py
Outdated
@@ -362,3 +401,21 @@ def test_initialize(): | |||
dict(type='Constant', name='conv2d_3', val=5, bias=6) | |||
]) | |||
initialize(foonet, init_cfg) | |||
|
|||
# test override with args except type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
except type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
except type key
deep copy
override_
to improve the robustness