aimet
aimet copied to clipboard
Pytorch model with a 'sigmoid' op cannot do channel pruning.
I trained a model and it contains 'sigmoid' op, it cannot be compressed with chnnel_prunning.
@hasuoshenyun is there a specific error you observe?
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.