aimet icon indicating copy to clipboard operation
aimet copied to clipboard

Pytorch model with a 'sigmoid' op cannot do channel pruning.

Open hasuoshenyun opened this issue 3 years ago • 2 comments

I trained a model and it contains 'sigmoid' op, it cannot be compressed with chnnel_prunning.

hasuoshenyun avatar Jan 26 '22 09:01 hasuoshenyun

@hasuoshenyun is there a specific error you observe?

quic-ssiddego avatar Mar 03 '22 01:03 quic-ssiddego

I observed a NotImplemented() exception raised from AIMET's Winnowing module while using sigmoid, max_pool2d, and relu from the torch.nn.functional API. I replaced these three with their torch.nn alternatives in my custom PyTorch model and was then able to use the channel_pruning function.

Dennis-Johnson avatar Jun 28 '22 09:06 Dennis-Johnson