Skip to content

Commit

Permalink
fix: Fixes ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Sep 16, 2023
1 parent 5392dd7 commit 17b630c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_methods_activation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def test_base_cam_constructor(mock_img_model):
for p in model.parameters():
p.requires_grad_(False)
# Check that multiple target layers is disabled for base CAM
with pytest.raises(ValueError, match="base CAM does not support multiple target layers"):
with pytest.raises(ValueError):
activation.CAM(model, ["classifier.1", "classifier.2"])

# FC layer checks
with pytest.raises(TypeError, match="invalid argument type for `target_layer`"):
with pytest.raises(TypeError):
activation.CAM(model, fc_layer=3)


Expand Down

0 comments on commit 17b630c

Please sign in to comment.