Skip to content

Commit

Permalink
Fix deprecated parameters in test for pretrained weights
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbg committed Dec 20, 2023
1 parent 65d6fab commit e684f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlordinal/estimator/tests/test_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def test_pytorch_estimator_creation():
# Model
model = models.resnet18(pretrained=True)
model = models.resnet18(weights=models.ResNet18_Weights.IMAGENET1K_V1)
model.fc = torch.nn.Linear(model.fc.in_features, 6)

# Loss function
Expand Down

0 comments on commit e684f8c

Please sign in to comment.