Skip to content

Commit

Permalink
follow codeQL and remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
allenhzy committed Dec 10, 2024
1 parent b138168 commit d5a0cd9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions art/defences/detector/evasion/beyond_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# SOFTWARE.
"""
This module implements the BEYOND detector for adversarial examples detection.
| Paper link: https://openreview.net/pdf?id=S4LqI6CcJ3
"""
import numpy as np
Expand All @@ -25,8 +26,6 @@
from art.utils import CLASSIFIER_NEURALNETWORK_TYPE


logger = logging.getLogger(__name__)

from art.defences.detector.evasion.evasion_detector import EvasionDetector

class BeyondDetector(EvasionDetector):
Expand Down
2 changes: 0 additions & 2 deletions tests/defences/detector/evasion/test_beyond_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

from tests.utils import ARTTestException

logger = logging.getLogger(__name__)

from torchvision import models, transforms

class SimSiamWithCls(nn.Module):
Expand Down

0 comments on commit d5a0cd9

Please sign in to comment.