Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -16,6 +16,8 @@ else: device = 'cpu'
|
|
16 |
print('DEVICE:', device)
|
17 |
if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
|
18 |
|
|
|
|
|
19 |
model = VGG_19().to(device).eval()
|
20 |
for param in model.parameters():
|
21 |
param.requires_grad = False
|
|
|
16 |
print('DEVICE:', device)
|
17 |
if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
|
18 |
|
19 |
+
torch.backends.cuda.matmul.allow_tf32 = False
|
20 |
+
|
21 |
model = VGG_19().to(device).eval()
|
22 |
for param in model.parameters():
|
23 |
param.requires_grad = False
|