# Remove the last layer to get features model.fc = torch.nn.Identity()