-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
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.
Many thanks again @Ishitori. Can you keep the outputs for now? Current build process doesn't add them in.
docs/tutorials/gluon/naming.md
Outdated
|
||
The same principle applies to container blocks like [`Sequential`](https://mxnet.incubator.apache.org/versions/master/api/python/gluon/gluon.html#mxnet.gluon.nn.Sequential). `name_scope` can be used inside as well as outside of `__init__`: |
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.
The same principle applies -> The same principle applies
docs/tutorials/gluon/naming.md
Outdated
|
||
The same principle applies to container blocks like [`Sequential`](https://mxnet.incubator.apache.org/versions/master/api/python/gluon/gluon.html#mxnet.gluon.nn.Sequential). `name_scope` can be used inside as well as outside of `__init__`: |
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.
Can tell whether you're saying this is recommended or not? Using name scope with Sequential?
docs/tutorials/gluon/naming.md
Outdated
Parameter model1_mydense_bias (shape=(20,), dtype=<type 'numpy.float32'>) | ||
) | ||
|
||
|
||
As a result, if you try to save parameters from model0 and load it with model1, you'll get an error due to unmatching names: |
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.
"load it with model1"? Might want to rephrase this.
|
||
- In Gluon model zoo, all image classification models follow the format where the feature extraction layers are named `features` while the output layer is named `output`. | ||
- Note that the output layer is a dense block with 1000 dimension outputs. | ||
Sometimes you may want to load a pretrained model, and replace certain Blocks in it for fine-tuning. For example, the [`AlexNet`](https://mxnet.incubator.apache.org/versions/master/api/python/gluon/model_zoo.html#vision) model in the model zoo has 1000 output dimensions, but maybe you have only 100 classes in your application. Let's see how to change the number of output dimensions from 1000 to 100. |
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.
Would mention that you can just set classes
argument for this case. Guess you're doing like this for demonstration purposes.
Great, thanks for updates. LGTM. |
@mxnet-label-bot add [pr-awaiting-review] |
Description
Update the text of Naming tutorials to make it more readable. Plus adding conclusion and next step sections.