hiascend commited on
Commit
4cf9cd7
·
verified ·
1 Parent(s): 404559e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ print('zero device: ' + str(zero.device))
8
  one = torch.ones(2, 2, device='cuda')
9
  print('one device: ' + str(one.device))
10
 
11
- two = torch.matmul(one, one, device='cuda')
12
  print('two device: ' + str(two.device))
13
 
14
  @spaces.GPU
 
8
  one = torch.ones(2, 2, device='cuda')
9
  print('one device: ' + str(one.device))
10
 
11
+ two = torch.matmul(one, one).cuda()
12
  print('two device: ' + str(two.device))
13
 
14
  @spaces.GPU