How to prune filters permanently?

I’m trying to do filter pruning fro efficientNet-b1, I think I’ve set unimportant filters to zeros using distiller, but how can I remove those filters permanently?Since the distiiler has some bugs, I have to do this myself, where should I start?

Thanks for your help.

Reply to myself: DEADLY simple, just navigate through the whole model find Conv layers and repalce them with new Conv module. I was using distiller and think this problem in an univresal view, It is quit hard if you want to prune filters for ALL CNN based model but deadly simple for a given CNN.