sunshineatnoon commited on
Commit
8fb0c3a
1 Parent(s): bfbfc21

Update libs/test_base.py

Browse files
Files changed (1) hide show
  1. libs/test_base.py +1 -1
libs/test_base.py CHANGED
@@ -15,7 +15,7 @@ class TesterBase():
15
  def __init__(self, args):
16
  cudnn.benchmark = True
17
 
18
- self.mean_values = torch.tensor([0.411, 0.432, 0.45]).view(1, 3, 1, 1).cuda()
19
 
20
  self.args = args
21
 
 
15
  def __init__(self, args):
16
  cudnn.benchmark = True
17
 
18
+ self.mean_values = torch.tensor([0.411, 0.432, 0.45]).view(1, 3, 1, 1).to(args.device)
19
 
20
  self.args = args
21