Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cifar-10-loader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mutsuki
cifar-10-loader
Commits
469a09db
Commit
469a09db
authored
Oct 08, 2018
by
mutsuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add how to use
parent
704612c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
README.md
README.md
+19
-0
No files found.
README.md
View file @
469a09db
# 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
);
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment