Skip to content

Commit

Permalink
Training: Pass device option to batch-represent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Jun 20, 2016
1 parent eaf7a1e commit b82f6c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion training/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function test()
print(outDir)
local cmd = batchRepresent
if opt.cuda then
cmd = cmd .. ' -cuda '
assert(opt.device ~= nil)
cmd = cmd .. ' -cuda -device ' .. opt.device
end
cmd = cmd .. ' -batchSize ' .. opt.testBatchSize ..
' -model ' .. latestModelFile ..
Expand Down

0 comments on commit b82f6c3

Please sign in to comment.