Tingxie commited on
Commit
ad2262b
·
1 Parent(s): effaac6

Update infer.py

Browse files
Files changed (1) hide show
  1. infer.py +0 -1
infer.py CHANGED
@@ -29,7 +29,6 @@ class ModelInference(object):
29
  self.model = ModelCLR(**self.config["model_config"]).to(self.device)
30
  state_dict = torch.load(pretrain_model_path,map_location=self.device)
31
  self.model.load_state_dict(state_dict)
32
- self.model.to(device)
33
  self.model.eval()
34
 
35
 
 
29
  self.model = ModelCLR(**self.config["model_config"]).to(self.device)
30
  state_dict = torch.load(pretrain_model_path,map_location=self.device)
31
  self.model.load_state_dict(state_dict)
 
32
  self.model.eval()
33
 
34