Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

add export doc #1705

Merged
merged 2 commits into from
Nov 9, 2019
Merged

add export doc #1705

merged 2 commits into from
Nov 9, 2019

Conversation

tanglang96
Copy link
Contributor

No description provided.

@@ -95,7 +95,17 @@ pruner.update_epoch(epoch)

The other is `step`, it can be called with `pruner.step()` after each minibatch. Note that not all algorithms need these two APIs, for those that do not need them, calling them is allowed but has no effect.

__[TODO]__ The last API is for users to export the compressed model. You will get a compressed model when you finish the training using this API. It also exports another file storing the values of masks.
You can easily export compressed model like this, ```state_dict``` of the sparse model weights will be stored in ```model.pth```, which can be loaded by ```torch.load('model.pth')```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> You can easily export the compressed model using the following API if you are pruning your model.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved

@QuanluZhang QuanluZhang closed this Nov 9, 2019
@QuanluZhang QuanluZhang reopened this Nov 9, 2019
@QuanluZhang QuanluZhang merged commit 2d375f4 into microsoft:master Nov 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants