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

in finetune.py 117 Why "-i"?? #32

Closed
toutuo opened this issue Jun 24, 2019 · 2 comments
Closed

in finetune.py 117 Why "-i"?? #32

toutuo opened this issue Jun 24, 2019 · 2 comments

Comments

@toutuo
Copy link

toutuo commented Jun 24, 2019

image
Can anybody explain that? Thank you very much.

@jacobgil
Copy link
Owner

The way it is written, it removes filters chosen for pruning, one after another, in a sequential way.
After the first filter in a layer is pruned, the index of the next filter that needs to be pruned changes, because there is one less filter left.
for example, lets say we need to prune filters 3,10 in some layer.
After pruning filter #3, the layer is smaller, and the index of previous filter #10 is now #9.

Ideally the filters would be removed all at once, that would be a better way of writing this.

@toutuo
Copy link
Author

toutuo commented Jun 24, 2019 via email

@toutuo toutuo closed this as completed Jun 24, 2019
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