Imported from https://github.com/AhrazA/modelcompression-2019