HighCWu commited on
Commit
3776a15
1 Parent(s): 01c9658

update for jit cpu load

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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