Imported from https://github.com/rahulvigneswaran/Lottery-Ticket-Hypothesis-in-Pytorch