Closed Coderx7 closed 6 years ago
Thanks to God, I found the issue. in each step the model is altered and a new instance of the model is reinstantiated and the pruning goes on. I had to also add the capability of instantiating the model based on an input cfg. (like the way vgg is constructed) when I did that everything started to work flawlessly. Thanks again
@Eric-mingjie : First of all thank you very much. When I try to prune my architecture(Simpnet) , half way through the pruning it crashes with the error :
RuntimeError: Given weight of size [9, 3, 3, 3], expected bias to be 1-dimensional with 9 elements, but got bias of size [128] instead
What is wrong here? Can you kindly assist me in resolving this issue ? Here is the whole log :
Thanks a lot