Repository: incubator-singa Updated Branches: refs/heads/master f29d93ff7 -> 906124556
fix bugs from gflags by moving definition of flag_sleep into worker.cc Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/90612455 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/90612455 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/90612455 Branch: refs/heads/master Commit: 906124556a0e017a2ccf7acd86edd5c6d40c6f72 Parents: f29d93f Author: wang wei <[email protected]> Authored: Tue May 19 22:29:26 2015 +0800 Committer: wang wei <[email protected]> Committed: Tue May 19 22:29:26 2015 +0800 ---------------------------------------------------------------------- src/main.cc | 1 - src/trainer/worker.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/90612455/src/main.cc ---------------------------------------------------------------------- diff --git a/src/main.cc b/src/main.cc index eaf88cc..89306d8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -20,7 +20,6 @@ DEFINE_int32(procsID, 0, "Global process ID"); DEFINE_string(cluster, "examples/mnist/cluster.conf", "Cluster config file"); DEFINE_string(model, "examples/mnist/conv.conf", "Model config file"); -DEFINE_int32(sleep, 5, "sleep seconds"); /** * Register layers, and other customizable classes. http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/90612455/src/trainer/worker.cc ---------------------------------------------------------------------- diff --git a/src/trainer/worker.cc b/src/trainer/worker.cc index dfbe989..0eb0cdd 100644 --- a/src/trainer/worker.cc +++ b/src/trainer/worker.cc @@ -9,7 +9,7 @@ #include "trainer/worker.h" #include "proto/model.pb.h" using std::thread; -DECLARE_int32(sleep); +DEFINE_int32(sleep, 5, "sleep seconds"); namespace singa { Worker::Worker(int thread_id, int group_id, int worker_id): thread_id_(thread_id), group_id_(group_id), worker_id_(worker_id){
