Skip to content

Commit

Permalink
Set 'disable_cudnn' flag when loading netwrokds
Browse files Browse the repository at this point in the history
  • Loading branch information
farrajota committed Jul 10, 2017
1 parent 4e7acd8 commit ae82433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local function convert_model_backend(model, opt, is_gpu)
model:cuda()

-- require cudnn if available
if pcall(require, 'cudnn') then
if pcall(require, 'cudnn') and not opt.disable_cudnn then
cudnn.convert(model, cudnn):cuda()
cudnn.benchmark = true
if opt.cudnn_deterministic then
Expand Down

0 comments on commit ae82433

Please sign in to comment.