LTT commited on
Commit
1817aae
1 Parent(s): 0b71253

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -51,6 +51,7 @@ install_cuda_toolkit()
51
 
52
 
53
  print(f"GPU: {torch.cuda.is_available()}")
 
54
  if torch.cuda.is_available() and torch.cuda.device_count() >= 2:
55
  device0 = torch.device('cuda:0')
56
  device1 = torch.device('cuda:0')
 
51
 
52
 
53
  print(f"GPU: {torch.cuda.is_available()}")
54
+ a = torch.tensor([0]).cuda()
55
  if torch.cuda.is_available() and torch.cuda.device_count() >= 2:
56
  device0 = torch.device('cuda:0')
57
  device1 = torch.device('cuda:0')