text: //=======================================================================
  // Copyright (c) 2017 Adrian Schneider
  // Distributed under the terms of the MIT License.
  // (See accompanying file LICENSE or copy at
  //  http://opensource.org/licenses/MIT)
  //=======================================================================
  
  #include <iostream>
  #include "mnist/mnist_reader.hpp"
  
  int main(int argc, char* argv[]) {
      // MNIST_DATA_LOCATION set by MNIST cmake config
      std::cout << "MNIST data directory: " << MNIST_DATA_LOCATION << std::endl;
      std::cout << "MNIST fashion data directory: " << MNIST_FASHION_DATA_LOCATION << std::endl;
  
      // Load MNIST data
      {
          mnist::MNIST_dataset<std::vector, std::vector<uint8_t>, uint8_t> dataset =
              mnist::read_dataset<std::vector, std::vector, uint8_t, uint8_t>(MNIST_DATA_LOCATION);
  
          std::cout << "Nbr of training images = " << dataset.training_images.size() << std::endl;
          std::cout << "Nbr of training labels = " << dataset.training_labels.size() << std::endl;
          std::cout << "Nbr of test images = " << dataset.test_images.size() << std::endl;
          std::cout << "Nbr of test labels = " << dataset.test_labels.size() << std::endl;
      }
  
      // Load fashion MNIST data
      {
          mnist::MNIST_dataset<std::vector, std::vector<uint8_t>, uint8_t> dataset =
              mnist::read_dataset<std::vector, std::vector, uint8_t, uint8_t>(MNIST_FASHION_DATA_LOCATION);
  
          std::cout << "Nbr of training images = " << dataset.training_images.size() << std::endl;
          std::cout << "Nbr of training labels = " << dataset.training_labels.size() << std::endl;
          std::cout << "Nbr of test images = " << dataset.test_images.size() << std::endl;
          std::cout << "Nbr of test labels = " << dataset.test_labels.size() << std::endl;
      }
  
      return 0;
  }
  