Skip to content

Commit

Permalink
SINGA-21 Code review - 2
Browse files Browse the repository at this point in the history
Fix a bug caused by gflags version by adding a macro at main.cc to redefine the namespace gflags=google
Update mnist/cifar10 example by adding a Makefile.example
  • Loading branch information
nudles committed Jun 24, 2015
1 parent acfc409 commit cfde471
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/cifar10/model.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "cifar10-convnet"
train_steps: 1000
test_steps:10
test_steps:100
test_frequency:300
display_frequency:30
alg: kBackPropagation
Expand Down
File renamed without changes.
4 changes: 3 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <gflags/gflags.h>
#include <glog/logging.h>
#include "trainer/trainer.h"

#ifndef GFLAGS_GFLAGS_H_
namespace gflags = google;
#endif // GFLAGS_GFLAGS_H_
/**
* \file main.cc is the main entry of SINGA, like the driver program for Hadoop.
*
Expand Down

0 comments on commit cfde471

Please sign in to comment.