Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 12, 2021
1 parent 457989f commit d15d66b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/image/test_backbones.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def test_image_classifier_backbones_registry(backbone, expected_num_features):


@pytest.mark.parametrize(["backbone", "pretrained", "expected_num_features"], [
pytest.param("resnet50", "supervised", 2048, marks=pytest.mark.skipif(
not _TORCHVISION_AVAILABLE, reason="No torchvision")),
pytest.param("resnet50", "simclr", 2048, marks=pytest.mark.skipif(
not _TORCHVISION_AVAILABLE, reason="No torchvision")),
pytest.param(
"resnet50", "supervised", 2048, marks=pytest.mark.skipif(not _TORCHVISION_AVAILABLE, reason="No torchvision")
),
pytest.param(
"resnet50", "simclr", 2048, marks=pytest.mark.skipif(not _TORCHVISION_AVAILABLE, reason="No torchvision")
),
])
def test_pretrained_weights_registry(backbone, pretrained, expected_num_features):
backbone_fn = IMAGE_CLASSIFIER_BACKBONES.get(backbone)
Expand Down

0 comments on commit d15d66b

Please sign in to comment.