ypesk commited on
Commit
a72440d
·
verified ·
1 Parent(s): 278fbfb

Update tasks/text.py

Browse files
Files changed (1) hide show
  1. tasks/text.py +0 -2
tasks/text.py CHANGED
@@ -108,8 +108,6 @@ async def evaluate_text(request: TextEvaluationRequest):
108
  predictions = []
109
  for step, batch in enumerate(test_dataloader):
110
 
111
- # Add batch to GPU
112
- batch = tuple(t.to(device) for t in batch)
113
 
114
  b_input_ids, b_input_mask, b_token_type_ids = batch
115
  with torch.no_grad():
 
108
  predictions = []
109
  for step, batch in enumerate(test_dataloader):
110
 
 
 
111
 
112
  b_input_ids, b_input_mask, b_token_type_ids = batch
113
  with torch.no_grad():