Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-09-10 08:11:06 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-09-10 08:11:06 +0400
commit6d32c17a9aaf868153b3da314158b6606a6e3810 (patch)
treee4cb1b9261d397688eab02234f6e914fc0fdd12d
parentf97d6a2efb06e8b15284a3e3ad811c15ae773c26 (diff)
Using cleaner function in batchoptimization.
-rw-r--r--BatchOptimization.lua5
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()