Robustness to distribution shifts of compressed networks for edge devices