Comments (7)
The ResNet model pruned impletement faster little about 10%, code in
https://github.com/eeric/channel_prune
the reason that non-tensor layers (e.g., batch normalization
and pooling layers) took up more than 40% of the inference
time on GPU.
from pytorch-pruning.
How to get this "the reason that non-tensor layers (e.g., batch normalization
and pooling layers) took up more than 40% of the inference
time on GPU." Are there some papers or other things?
@eeric
from pytorch-pruning.
test myself
from pytorch-pruning.
Hey Guys, I pruned the SqueezeNet model and when I test for the inference time, it is same on the GPU. I can see the difference onοΏ½ CPU(after 67% filter pruning, inference time is almost half) but, on GPU it is same. Any Idea why this is happening?
After Pruning:
- Model Size reduced
- I can see the difference in FLOP
- Pruned model is faster on CPU but not on GPU. :(
Thank you!!
from pytorch-pruning.
@eeric Actually, after pruning, the number of input channel and output channel is no longer integer multiple of 32. When cuda compute the convolution, it actually transforms it into matrix mulitiplication. The warp of cuda is 32.
from pytorch-pruning.
@buaaJeremyduan, thanks!
from pytorch-pruning.
@Kuldeep-Attri did you find out the reason?
My observation in that regard is same. Let me know if you have any leads?
from pytorch-pruning.
Related Issues (20)
- Python 3.6, pytorch 0.4.1, getting RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 3) HOT 4
- torch.load(pruned_model) HOT 7
- vgg16 has 13 conv layers, how can you prune neurons on layer 28? HOT 2
- [CUDA Runtime Error] Assertion `t >= 0 && t < n_classes` failed. HOT 5
- Accuracy drops from 96.46% to 58.67% HOT 1
- train_path
- Time of 1 pruning iteration
- in finetune.py 117 Why "-i"?? HOT 2
- Getting Error in pruning HOT 1
- pruning conv layers with 'groups' > 1
- Batch Nomalization
- I wonder if this pruning approach can be adapted to net like resnet
- layer_index
- how Pruning the last conv layer affects the first linear layer of the classifier
- can u plz tell me how to resolve this issue of not getting training data path
- where is prune_conv_layer?
- Will the pruned weight reactivated after finetuning?
- Running project in google colab
- running project on Anaconda Jupyter Notebook
- Pruning model YOLOX using 'import torch.nn.utils.prune as prune'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-pruning.