grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
Dataset
example
cifar
Undocumented in source.
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)
Undocumented in source.
Members
Functions
makeBatch
auto
makeBatch
(size_t batchSize)
Undocumented in source. Be warned that the author may not have intended to support it.
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
example
cifar
aliases
S
functions
dumpPNG
main
prepareDataset
structs
Dataset
Model