diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2011-09-10 08:11:06 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2011-09-10 08:11:06 +0400 |
commit | 6d32c17a9aaf868153b3da314158b6606a6e3810 (patch) | |
tree | e4cb1b9261d397688eab02234f6e914fc0fdd12d | |
parent | f97d6a2efb06e8b15284a3e3ad811c15ae773c26 (diff) |
Using cleaner function in batchoptimization.
-rw-r--r-- | BatchOptimization.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BatchOptimization.lua b/BatchOptimization.lua index 51ee075..02a54e2 100644 --- a/BatchOptimization.lua +++ b/BatchOptimization.lua @@ -242,7 +242,8 @@ function Batch:setup_mapreduce () end -- (1) define code for workers - local worker_code = [[ + local worker_code = + function() -- require packages require 'nnx' @@ -312,7 +313,7 @@ function Batch:setup_mapreduce () collectgarbage() end end - ]] + end -- (2) dispatch workers local setup = function() |