Skip to content

Commit

Permalink
Fix gpu option
Browse files Browse the repository at this point in the history
  • Loading branch information
nagadomi committed Mar 31, 2017
1 parent 202453d commit 6ba6cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waifu2x.lua
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ local function waifu2x()
if opt.thread > 0 then
torch.setnumthreads(opt.thread)
end
cutorch.setDevice(opt.gpu)
if cudnn then
cudnn.fastest = true
if opt.l:len() > 0 then
Expand All @@ -293,6 +294,5 @@ local function waifu2x()
else
convert_frames(opt)
end
cutorch.setDevice(opt.gpu)
end
waifu2x()

0 comments on commit 6ba6cfe

Please sign in to comment.