Spaces:
Runtime error
Runtime error
update for jit cpu load
Browse files
app.py
CHANGED
|
@@ -20,6 +20,7 @@ if torch.cuda.is_available():
|
|
| 20 |
device = 'cuda'
|
| 21 |
else:
|
| 22 |
device = 'cpu'
|
|
|
|
| 23 |
|
| 24 |
print('Use device:', device)
|
| 25 |
|
|
|
|
| 20 |
device = 'cuda'
|
| 21 |
else:
|
| 22 |
device = 'cpu'
|
| 23 |
+
torch._C._jit_set_bailout_depth(0)
|
| 24 |
|
| 25 |
print('Use device:', device)
|
| 26 |
|