Skip to content
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

Support Speedup for Slim Pruner. #4008

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

zheng-ningxin
Copy link
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.
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
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
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 join this conversation on GitHub. Already have an account? Sign in to comment
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