File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11"""
22Module providing evasion attacks under a common interface.
33"""
4+ import importlib
5+
46from art .attacks .evasion .adversarial_patch .adversarial_patch import AdversarialPatch
57from art .attacks .evasion .adversarial_patch .adversarial_patch_numpy import AdversarialPatchNumpy
68from art .attacks .evasion .adversarial_patch .adversarial_patch_tensorflow import AdversarialPatchTensorFlowV2
911from art .attacks .evasion .adversarial_asr import CarliniWagnerASR
1012from art .attacks .evasion .auto_attack import AutoAttack
1113from art .attacks .evasion .auto_projected_gradient_descent import AutoProjectedGradientDescent
12- from art .attacks .evasion .brendel_bethge import BrendelBethgeAttack
14+
15+ if importlib .util .find_spec ("numba" ) is not None :
16+ from art .attacks .evasion .brendel_bethge import BrendelBethgeAttack
17+
1318from art .attacks .evasion .boundary import BoundaryAttack
1419from art .attacks .evasion .carlini import CarliniL2Method , CarliniLInfMethod , CarliniL0Method
1520from art .attacks .evasion .decision_tree_attack import DecisionTreeAttack
Original file line number Diff line number Diff line change 1313 "six" ,
1414 "setuptools" ,
1515 "tqdm" ,
16- "numba>=0.53.1" ,
1716]
1817
1918docs_require = [
@@ -93,6 +92,7 @@ def get_version(rel_path):
9392 "cma" ,
9493 "librosa" ,
9594 "opencv-python" ,
95+ "numba" ,
9696 ],
9797 "non_framework" : [
9898 "matplotlib" ,
@@ -112,6 +112,7 @@ def get_version(rel_path):
112112 "codecov" ,
113113 "requests" ,
114114 "sortedcontainers" ,
115+ "numba" ,
115116 ],
116117 },
117118 classifiers = [
You can’t perform that action at this time.
0 commit comments