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

Abour similar_small_index #8

Closed
zhongshaoyy opened this issue Jun 17, 2019 · 2 comments
Closed

Abour similar_small_index #8

zhongshaoyy opened this issue Jun 17, 2019 · 2 comments

Comments

@zhongshaoyy
Copy link

When running the code, I found that the similar_small_index always includes indexes from 0 to n,such as [0,1,2,3,4,5,6,7,8] .And the similar_sum matrix always has some equal numbers in the matrix. Is this because there are some setttings to constrain the matrix?

@yyx1107
Copy link

yyx1107 commented Jun 19, 2019

similar_pruned_num = int(weight_torch.size()[0] * distance_rate)
...
similar_small_index = similar_sum.argsort()[: similar_pruned_num]
The distance_rate is an invariant constant, so the num of filters that should be pruned each layer is also invariant.Or you can add me QQ 1017176539 .Maybe I can help you with the issue.

@he-y
Copy link
Owner

he-y commented Jun 25, 2019

Please read the code to find the definition of these parameters.

These pruning rates are pre-defined. Please read section 4.1. Experimental Settings of our paper for details.

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

3 participants