-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
@@ -0,0 +1,130 @@ | |||
from nni.compression.tensorflow import FPGMPruner |
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.
is it easy to reproduce one of the experiments in the paper?
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 key metrics of the pruning are reduced FLOPs and accuracy change, to reproduce the reduced FLOPs, we need to use the pruned compact model, which is not implemented yet.
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.
I think we need to offer some test metrics to make sure the implementation is correct.
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.
Sure, I have added verification code in fpgm_torch_mnist.py example to verify the pruned conv kernel weight sparsity. By checking the sparsity and loss, we can verify:
- the configured layers are pruned.
- the pruned model has similar loss with origin model
But this code still can not verify the implementation is same as the paper. I am considering to add some kind of verification in UT.
please update doc accordingly |
} | ||
|
||
default_layers = ['Dense', 'Conv2D'] |
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.
what is the difference between supported_layers
and default_layers
?
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.
Thanks, updated, please check again.
Filter prune algo implementation (microsoft#1655)
Filter prune algo implementation (microsoft#1655)
This reverts commit 262fabf.
Implement filter pruning algorithms: Filter Pruning via Geometric Median for Deep Convolutional Neural Networks Acceleration (https://arxiv.org/abs/1811.00250)