cornell-zhang / dnn-gating Goto Github PK
View Code? Open in Web Editor NEWConditional channel- and precision-pruning on neural networks
License: BSD 3-Clause "New" or "Revised" License
Conditional channel- and precision-pruning on neural networks
License: BSD 3-Clause "New" or "Revised" License
Hello,
Great work! Thanks for sharing the code, I would like to inquire about how the sparsity is reported [https://github.com/cornell-zhang/dnn-gating/blob/master/utils/cg_utils.py#L176]. This calculates sparsity in feature maps per pixel, but as far as I know, this isn't how the filter pruning methods report FLOPs reduction. I was wondering if there is another FLOPs reduction report that calculates based on skipping the whole filter/slice or not to be comparable with filter pruning methods instead of sparsity measure?
Also, in your paper table 4, you calculated fps with batch size 32. Would you mind sharing code to achieve actual speedup?
Thanks!
Did you implement two separate BN for base path (Xp) and conditional path (Xr) as figure 4 mentioned in your paper?
I only find one BN here.
Line 173 in 31666fa
In your implementation of QuantizedConv2d, I found your pipeline is: quantize -> dequantize -> conv, why not use quantize -> conv -> dequantize?
in my opinion, the pipeline (quantize -> conv -> dequantize) will be faster, because the conv can be boosted by low-bit calculation.
Hope to get your reply.
Thanks
Did you implement threshold tc mentioned in formula (4) in this repo?
I think the line below only implements ฮ
Line 173 in 31666fa
According to the code here, the implementation of CGConv2d does not skip the computation of Y_r, which is proposed in your paper.
In fact, this implementation computes Y and Y_p separately, and produces the result by Y*d+Y_p*(1-d). This implementation increases the computation, right? So how do you actually skip and save the computation?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.