Spaces:
Runtime error
Runtime error
enabled cudnn.benchmark
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ torch.set_num_threads(8)
|
|
| 18 |
|
| 19 |
# Speed up computation
|
| 20 |
torch.autograd.set_grad_enabled(True)
|
| 21 |
-
|
| 22 |
|
| 23 |
# Specify model to use
|
| 24 |
config = Config(
|
|
|
|
| 18 |
|
| 19 |
# Speed up computation
|
| 20 |
torch.autograd.set_grad_enabled(True)
|
| 21 |
+
torch.backends.cudnn.benchmark = True
|
| 22 |
|
| 23 |
# Specify model to use
|
| 24 |
config = Config(
|