Skip to content

Commit

Permalink
Print to stderr for example LMDB code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeyeager committed Apr 20, 2016
1 parent 9042664 commit f30c61c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cifar10/convert_cifar_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ void convert_dataset(const string& input_folder, const string& output_folder,
}

int main(int argc, char** argv) {
FLAGS_alsologtostderr = 1;

if (argc != 4) {
printf("This script converts the CIFAR dataset to the leveldb format used\n"
"by caffe to perform classification.\n"
Expand Down
2 changes: 2 additions & 0 deletions examples/mnist/convert_mnist_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ int main(int argc, char** argv) {
namespace gflags = google;
#endif

FLAGS_alsologtostderr = 1;

gflags::SetUsageMessage("This script converts the MNIST dataset to\n"
"the lmdb/leveldb format used by Caffe to load data.\n"
"Usage:\n"
Expand Down

0 comments on commit f30c61c

Please sign in to comment.