Git Product home page Git Product logo

Comments (7)

eeric avatar eeric commented on July 25, 2024

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.

guoxiaolu avatar guoxiaolu commented on July 25, 2024

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.

eeric avatar eeric commented on July 25, 2024

test myself

from pytorch-pruning.

Kuldeep-Attri avatar Kuldeep-Attri commented on July 25, 2024

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.

zxduan90 avatar zxduan90 commented on July 25, 2024

@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.

eeric avatar eeric commented on July 25, 2024

@buaaJeremyduan, thanks!

from pytorch-pruning.

kssk16 avatar kssk16 commented on July 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.