Commit 469a09db authored by mutsuki's avatar mutsuki

add how to use

parent 704612c2
# CIFAR10 Loader written in C++
## Requirement
- C++11
## Use
```cpp
const auto cifar_10_sample = mtk::load_cifar_10("cifar-10-batches-bin/data_batch_1.bin");
for(const auto& sample : cifar_10_sample){
// type : std::vector<unsigned int>(32 x 32)
// unsigned int <- 0xrrggbb
const auto image = std::get<0>(sample);
// type : int
const auto label = std::get<1>(sample);
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment