VeenaGarre commited on
Commit
7238993
·
verified ·
1 Parent(s): 89418aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -16,6 +16,9 @@ if device.type == 'cuda':
16
  print('Memory Usage:')
17
  print('Allocated:', round(torch.cuda.memory_allocated(0)/1024**3,1), 'GB')
18
  print('Cached: ', round(torch.cuda.memory_reserved(0)/1024**3,1), 'GB')
 
 
 
19
  #Load dataset
20
  import pandas as pd
21
  from datasets import load_dataset
 
16
  print('Memory Usage:')
17
  print('Allocated:', round(torch.cuda.memory_allocated(0)/1024**3,1), 'GB')
18
  print('Cached: ', round(torch.cuda.memory_reserved(0)/1024**3,1), 'GB')
19
+
20
+ ncf_model.to(device)
21
+
22
  #Load dataset
23
  import pandas as pd
24
  from datasets import load_dataset