-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Question about testing weight sharing of two resnets in test_gluon_estimator.py #18372
Comments
What I want to do is I need estimator support
My first test case already cover the first case, so I use a partially weight shared resnet to test the second case. The third the fourth cases are trivial. So I didn't write new test case for that. But what do you mean by |
So is Line 420-423 meant to share the same parameters between net.output and val_net.output (other parts are different)? If so, actually Line 420-423 fails to share parameters:
|
I think as of the time of testing, you have not initialized network weights. Would you mind testing |
@liuzh91 these appear to be two separate parameters, as their prefixes differ: resnetv10_weight vs dense0_weight |
It should be |
https://github.com/apache/incubator-mxnet/blob/master/tests/python/unittest/test_gluon_estimator.py#L423
Actually val_net.output does not share the same parameters with net.output in this case.
And I don't understand what the test case is aimed for. Why only share the output parameters to test weight sharing of two resnets? @liuzh91
The text was updated successfully, but these errors were encountered: