suryadev1 commited on
Commit
03782e3
1 Parent(s): 5fdf2ba

num_workers

Browse files
Files changed (1) hide show
  1. src/test_saved_model.py +1 -1
src/test_saved_model.py CHANGED
@@ -225,7 +225,7 @@ if __name__ == "__main__":
225
  print("Loading Test Dataset", args.test_dataset)
226
  test_dataset = TokenizerDataset(args.test_dataset, args.test_label, vocab_obj, seq_len=args.seq_len, train=False)
227
  print("Creating Dataloader")
228
- test_data_loader = DataLoader(test_dataset, batch_size=args.batch_size, num_workers=10)
229
  bert = torch.load(args.finetuned_bert_checkpoint, map_location="cpu")
230
 
231
  if args.workspace_name == "ratio_proportion_change4":
 
225
  print("Loading Test Dataset", args.test_dataset)
226
  test_dataset = TokenizerDataset(args.test_dataset, args.test_label, vocab_obj, seq_len=args.seq_len, train=False)
227
  print("Creating Dataloader")
228
+ test_data_loader = DataLoader(test_dataset, batch_size=args.batch_size, num_workers=0)
229
  bert = torch.load(args.finetuned_bert_checkpoint, map_location="cpu")
230
 
231
  if args.workspace_name == "ratio_proportion_change4":