Spaces:
Runtime error
Runtime error
Update min_dalle/min_dalle.py
Browse files- min_dalle/min_dalle.py +1 -1
min_dalle/min_dalle.py
CHANGED
@@ -13,7 +13,7 @@ import streamlit as st
|
|
13 |
import time
|
14 |
|
15 |
torch.set_grad_enabled(False)
|
16 |
-
torch.set_num_threads(
|
17 |
torch.backends.cudnn.enabled = True
|
18 |
torch.backends.cudnn.allow_tf32 = True
|
19 |
|
|
|
13 |
import time
|
14 |
|
15 |
torch.set_grad_enabled(False)
|
16 |
+
torch.set_num_threads(os.cpu_count())
|
17 |
torch.backends.cudnn.enabled = True
|
18 |
torch.backends.cudnn.allow_tf32 = True
|
19 |
|