Skip to content
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

Channel number to be pruned must be a pow of 2 ? #12

Open
summer-wind-hi opened this issue Jun 5, 2021 · 1 comment
Open

Channel number to be pruned must be a pow of 2 ? #12

summer-wind-hi opened this issue Jun 5, 2021 · 1 comment

Comments

@summer-wind-hi
Copy link

Hi @liuzhuang13,
There is another issue I met in my experiments: inference time reduced when channel number to be pruned was a pow of 2 , otherwise it increased and longer than baseline, which is not mentioned. Have you ever met same issue in your experiments? and any suggestions?

my hardware and system:
GPU: GeForce RTX 2080 12G
CPU: 58G, 12 cores
System: Ubuntu16.04

regards,
summer, Gao

@HHCorp
Copy link

HHCorp commented Nov 23, 2021

Hi @liuzhuang13, There is another issue I met in my experiments: inference time reduced when channel number to be pruned was a pow of 2 , otherwise it increased and longer than baseline, which is not mentioned. Have you ever met same issue in your experiments? and any suggestions?

my hardware and system: GPU: GeForce RTX 2080 12G CPU: 58G, 12 cores System: Ubuntu16.04

regards, summer, Gao

@summer-wind-hi
It involves memory alignment. The inference time also depends on your processor(CPU, GPU or other chips) and for most processors, the data size that divisible by 8 is aligned to its memory access size, which can make memory access and matrix computation faster. Hope this 'https://stackoverflow.com/questions/381244/purpose-of-memory-alignment' can make you more clear. You can also find explanation in some papers (e.g.https://openaccess.thecvf.com/content_ICCV_2019/papers/Yu_Universally_Slimmable_Networks_and_Improved_Training_Techniques_ICCV_2019_paper.pdf, It mentions the width design divisible by 8,16,32... that matchs the warp of GPU, has better performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants