[example] convert mnist name fix (crashes xcode compiler)
authorqipeng <pengrobertqi@163.com>
Wed, 3 Sep 2014 23:30:34 +0000 (16:30 -0700)
committerqipeng <pengrobertqi@163.com>
Wed, 3 Sep 2014 23:30:34 +0000 (16:30 -0700)
examples/mnist/convert_mnist_data.cpp

index 0d3e91e..1904015 100644 (file)
@@ -37,7 +37,7 @@ void convert_dataset(const char* image_filename, const char* label_filename,
   std::ifstream image_file(image_filename, std::ios::in | std::ios::binary);
   std::ifstream label_file(label_filename, std::ios::in | std::ios::binary);
   CHECK(image_file) << "Unable to open file " << image_filename;
-  CHECK(label_file) << "Unable to open file " << label_file;
+  CHECK(label_file) << "Unable to open file " << label_filename;
   // Read the magic and the meta data
   uint32_t magic;
   uint32_t num_items;