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

Support Speedup for Slim Pruner.#4008

Merged
QuanluZhang merged 2 commits into
microsoft:masterfrom
zheng-ningxin:support_slim
Aug 3, 2021
Merged

Support Speedup for Slim Pruner.#4008
QuanluZhang merged 2 commits into
microsoft:masterfrom
zheng-ningxin:support_slim

Conversation

@zheng-ningxin

Copy link
Copy Markdown
Contributor

Speedup does not support Slim pruners at the beginning(v1.6). Slim pruner prunes the BN layers which is not supported in the
mask_conflict utils, in this PR, we support the BN layers in mask_conflict so that Slim pruner is supported in speedup.

Slim pruner prunes the BN layers which is not supported in the
mask_conflict utils, in this PR, we support the BN layers in
mask_conflict so that Slim pruner is supported in speedup.
@zheng-ningxin zheng-ningxin linked an issue Aug 3, 2021 that may be closed by this pull request
prune_type: str
This parameter indicates the channel pruning type: 1) `Filter`
prune the filter of the convolution layer to prune the corresponding
channels 2) prune the channel in the batchnorm layer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2 ) Batchnorm prune ...

A dict object that stores the masks.
model: nn.Module
Model object which the mask can be applied on.
Returns:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

add blank line

@QuanluZhang QuanluZhang merged commit 0aea0a5 into microsoft:master Aug 3, 2021
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.

can't speed up mobilenetv2 with slim

3 participants