Download data_loader.hpp from Agnuxo/Pure_Optical_CUDA: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/Agnuxo/Pure_Optical_CUDA/resolve/main/data_loader.hpp
- Command line
-
hf download hf://Agnuxo/Pure_Optical_CUDA/data_loader.hpp
-
curl -L -o data_loader.hpp https://huggingface.co/Agnuxo/Pure_Optical_CUDA/resolve/main/data_loader.hpp
403 Bytes
| struct FashionMNISTSet { | |
| // Images as floats in [0,1], row-major, size = N * 784 | |
| std::vector<float> images; | |
| // Labels in {0..9}, size = N | |
| std::vector<uint8_t> labels; | |
| size_t N = 0; | |
| }; | |
| // Loads the entire Fashion-MNIST dataset from the binary files | |
| FashionMNISTSet load_fashion_mnist_data(const std::string& data_dir, bool is_train); |