Skip to content

Commit f30c61c

Browse files
committed
Print to stderr for example LMDB code
1 parent 9042664 commit f30c61c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

examples/cifar10/convert_cifar_data.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ void convert_dataset(const string& input_folder, const string& output_folder,
9191
}
9292

9393
int main(int argc, char** argv) {
94+
FLAGS_alsologtostderr = 1;
95+
9496
if (argc != 4) {
9597
printf("This script converts the CIFAR dataset to the leveldb format used\n"
9698
"by caffe to perform classification.\n"

examples/mnist/convert_mnist_data.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ int main(int argc, char** argv) {
178178
namespace gflags = google;
179179
#endif
180180

181+
FLAGS_alsologtostderr = 1;
182+
181183
gflags::SetUsageMessage("This script converts the MNIST dataset to\n"
182184
"the lmdb/leveldb format used by Caffe to load data.\n"
183185
"Usage:\n"

0 commit comments

Comments
 (0)