-
Notifications
You must be signed in to change notification settings - Fork 227
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
Pruning masks applying #994
Merged
vshampor
merged 3 commits into
openvinotoolkit:develop
from
daniil-lyakhov:mkaglins/pruning_masks_applying
Nov 3, 2021
Merged
Pruning masks applying #994
vshampor
merged 3 commits into
openvinotoolkit:develop
from
daniil-lyakhov:mkaglins/pruning_masks_applying
Nov 3, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daniil-lyakhov
requested review from
alexsu52,
ljaljushkin,
vshampor,
evgeniya-egupova,
AlexanderDokuchaev and
a team
October 26, 2021 17:36
Unresolved #985 (comment) |
Successfully checked there is tf test which checks is batchnorm layers wrapped by NNCFWrapper after pruning algo: |
alexsu52
approved these changes
Oct 27, 2021
TODO:
SOTA checkpoint build |
daniil-lyakhov
force-pushed
the
mkaglins/pruning_masks_applying
branch
from
October 29, 2021 17:30
5d07d6d
to
678aabd
Compare
ljaljushkin
reviewed
Nov 1, 2021
ljaljushkin
approved these changes
Nov 1, 2021
SOTA check |
vshampor
approved these changes
Nov 2, 2021
evgeniya-egupova
approved these changes
Nov 3, 2021
kshpv
pushed a commit
to kshpv/nncf
that referenced
this pull request
Oct 11, 2022
* Pruning masks applying * Enable backward compatibility * Backward compat test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
##MKaglinslaya
FilterPruningBlock
changed to apply masks to weights, not only store maskFilterPruningBlock
added to them. Masks propagation to these layers from convolutions.UpdateWeightAndBiasPruning
pre-layer operation was added to consistently prune weights and bias (@vshampor Please, take a look on these changes)zero_grad
attribute was deleted as not needed anymore@AlexanderDokuchaev @daniil-lyakhov Please, take a look at these changes in pruning.
cc @evgeniya-egupova
##DLyakhov
Reason for changes
New masks applying mechanism allow re-pruning of the model since weights aren't pruning permanently.
Related tickets
Ticket ID 53524
Tests
A couple of tests in test_algo was changed to test the new mechanism (instead of zeroing weights zeroing of conv outputs are checked).