File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
art/attacks/evasion/adversarial_patch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ def __init__(
100100 import torch # lgtm [py/repeated-import]
101101 import torchvision
102102
103- torch_version = list (map (int , torch .__version__ .lower ().split ('+' )[0 ].split ("." )))
104- torchvision_version = list (map (int , torchvision .__version__ .lower ().split ('+' )[0 ].split ("." )))
103+ torch_version = list (map (int , torch .__version__ .lower ().split ("+" )[0 ].split ("." )))
104+ torchvision_version = list (map (int , torchvision .__version__ .lower ().split ("+" )[0 ].split ("." )))
105105 assert torch_version [0 ] >= 1 and torch_version [1 ] >= 7 , "AdversarialPatchPyTorch requires torch>=1.7.0"
106106 assert (
107107 torchvision_version [0 ] >= 0 and torchvision_version [1 ] >= 8
You can’t perform that action at this time.
0 commit comments