Sadjad Alikhani
commited on
Update inference.py
Browse files- 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 |
|