grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
Dataset
grain
dataset
cifar
struct
Dataset {
import
mir
.
ndslice
:
Slice
,
Contiguous
;
;
Slice
!(
float
*,
4
)
inputs
;
Slice
!(
int
*,
1
)
targets
;
Slice
!(
int
*,
1
)
coarses
;
this
(string[] paths);
auto
makeBatch
(size_t batchSize);
}
Constructors
this
this
(string[] paths)
Members
Functions
makeBatch
auto
makeBatch
(size_t batchSize)
Variables
coarses
Slice
!(
int
*,
1
)
coarses
;
Undocumented in source.
inputs
Slice
!(
float
*,
4
)
inputs
;
shape is [data, rgb, width, height]
targets
Slice
!(
int
*,
1
)
targets
;
Undocumented in source.
Meta
Source
See Implementation
grain
dataset
cifar
functions
prepareDataset
structs
Dataset