jamino30 commited on
Commit
0c698d9
·
verified ·
1 Parent(s): a9b3014

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -17,6 +17,8 @@ else: device = 'cpu'
17
  print('DEVICE:', device)
18
  if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
19
 
 
 
20
  model = VGG_19().to(device)
21
  for param in model.parameters():
22
  param.requires_grad = False
 
17
  print('DEVICE:', device)
18
  if device == 'cuda': print('CUDA DEVICE:', torch.cuda.get_device_name())
19
 
20
+ torch.backends.cudnn.benchmark = True
21
+
22
  model = VGG_19().to(device)
23
  for param in model.parameters():
24
  param.requires_grad = False