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-10-31 23:12:45 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-10-31 23:12:45 +0400
commit7a392bb6812672859a484220e753366baf1bff71 (patch)
treeacdb971030ed3c004d0563f70f2a4b7257359e99
parent33d521fda1ad743d884690c1484bc44bbeac8340 (diff)
Stupid lBFGS sync.
-rw-r--r--LBFGSOptimization.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/LBFGSOptimization.lua b/LBFGSOptimization.lua
index bf9d41e..30321eb 100644
--- a/LBFGSOptimization.lua
+++ b/LBFGSOptimization.lua
@@ -41,9 +41,7 @@ function LBFGS:optimize()
-- allreduce sync
if self.allreduce then
- if (self.sampleCounter % self.allreduceSyncTime) == self.allreduceSyncTime-1 then
- allreduce.accumulate(self.parameters)
- end
+ allreduce.accumulate(self.parameters)
end
-- the magic function: will update the parameter vector according to the l-BFGS method