Commit e77824b
Update CODE/vulnscan.py
The condition logic is incorrect. If torch.cuda.is_available() returns False, then torch.backends.cudnn.is_available() will also return False, making this condition always False. Consider simplifying to just check if CUDA is not available but the system has CUDA capabilities.
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Shahm Najeeb <[email protected]>1 parent 1f8e0ec commit e77824b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments