Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
remove deprecated fallback_to_cpu option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean A. Senellart committed Jan 12, 2017
1 parent e62e497 commit 8898157
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions tools/translation_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ cmd:text("")
cmd:text("**Other options**")
cmd:text("")
cmd:option('-gpuid', -1, [[ID of the GPU to use (-1 = use CPU, 0 = let cuda choose between available GPUs)]])
cmd:option('-fallback_to_cpu', false, [[If = true, fallback to CPU if no GPU available]])
onmt.utils.Logger.declareOpts(cmd)

onmt.utils.Logger.declareOpts(cmd)

local function translateMessage(translator, lines)
local srcBatch = {}
Expand Down
1 change: 0 additions & 1 deletion translate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ cmd:text("")
cmd:text("**Other options**")
cmd:text("")
cmd:option('-gpuid', 0, [[1-based identifier of the GPU to use. CPU is used when the option is < 1]])
cmd:option('-fallback_to_cpu', false, [[If = true, fallback to CPU if no GPU available]])
cmd:option('-time', false, [[Measure batch translation time]])

onmt.utils.Logger.declareOpts(cmd)
Expand Down

0 comments on commit 8898157

Please sign in to comment.