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

Prune parameters in a given layer #2

Open
Sheethal00 opened this issue Mar 22, 2021 · 1 comment
Open

Prune parameters in a given layer #2

Sheethal00 opened this issue Mar 22, 2021 · 1 comment

Comments

@Sheethal00
Copy link

Hi,

I am trying remove some filters in a Conv2D layer based on their l2 norm values.

Ex:
If a Conv2D layer has 32 filters with size (3,3,3,32) 3x3 is size of the kernel, 3 is repeating gray scale image and 32 is number of filters

Can i remove some filters and make the layer shape (3,3,3,30) with your codebase

I dint really go through your codebase

Thanks

@Arexh
Copy link
Owner

Arexh commented Mar 22, 2021

Hi @Sheethal00 , that probably won't work. The method I use can only be applied to prune on the fully connected layer. Since BERT has a lot of params in attention layers which are fully connected layers, this method works on the BERT model. If you are interested, you can read the paper 1910.04732 :)

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