robinwitch commited on
Commit
f218e94
·
1 Parent(s): e1ac5dd
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ class BaseTrainer(object):
118
  logger.info(f"Init test dataloader success")
119
  model_module = __import__(f"models.{args.model}", fromlist=["something"])
120
 
121
- self.model = torch.nn.DataParallel(getattr(model_module, args.g_name)(args), args.gpus).cuda()
122
 
123
  if self.rank == 0:
124
  logger.info(self.model)
 
118
  logger.info(f"Init test dataloader success")
119
  model_module = __import__(f"models.{args.model}", fromlist=["something"])
120
 
121
+ self.model = getattr(model_module, args.g_name)(args).cuda()
122
 
123
  if self.rank == 0:
124
  logger.info(self.model)