Salimshakeel commited on
Commit
0526375
·
1 Parent(s): e7af897
Files changed (1) hide show
  1. services/summarizer.py +2 -0
services/summarizer.py CHANGED
@@ -10,6 +10,8 @@ model = model.eval()
10
 
11
  def get_scores(features):
12
  # features.shape: (N, 1024)
 
 
13
  with torch.no_grad():
14
  scores, _ = model(features)
15
  return scores.squeeze().cpu().numpy()
 
10
 
11
  def get_scores(features):
12
  # features.shape: (N, 1024)
13
+ # features.dtype: torch.float32
14
+ # features.device: cpu
15
  with torch.no_grad():
16
  scores, _ = model(features)
17
  return scores.squeeze().cpu().numpy()