Sadjad Alikhani commited on
Commit
7d37a39
·
verified ·
1 Parent(s): 6148f7d

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -26,7 +26,7 @@ warnings.filterwarnings('ignore')
26
  from input_preprocess import *
27
 
28
  # Device configuration
29
- device = torch.device(cuda if torch.cuda.is_available() else "cpu")
30
  if torch.cuda.is_available():
31
  torch.cuda.empty_cache()
32
 
 
26
  from input_preprocess import *
27
 
28
  # Device configuration
29
+ device = torch.device('cuda' if torch.cuda.is_available() else "cpu")
30
  if torch.cuda.is_available():
31
  torch.cuda.empty_cache()
32