https://github.com/RICE-EIC/ShiftAddNet/blob/654a6327444ba471ab6a80410d8835b5dd24c3a3/prune.py#L416 It should be as if isinstance(m, adder_module):