Hi,
As mentionned in the error message, you do define a map_location='cpu' variable. But then you need to give it to the load function: checkpoint = torch.load(args.pretrained, map_location=map_location)