Filter Pruning - Remove zero filters

Hi, I want advice on net pruning. I have implemented pruninig to an object detector with FPN and skip connections using NNI’s library. The problem is that NNI’s ModelSpeedup() isn’t compatible with my model’s architecture and I am left with a model with zero filters. I want to remove those filters…

Is there any tool or any way to permantly remove those zero filters and not mess with the model ?