grain ~master (2021-05-15T05:53:16Z)
Dub
Repo
Model
example
cifar
Undocumented in source.
struct
Model (
T
alias
Storage
) {
alias
L
=
Linear
!(
T
,
Storage
)
;
Convolution
!(
float
,
2
,
Storage
)
conv
;
L
fc1
;
L
fc2
;
L
fc3
;
this
(int nhidden, int nout);
auto
opCall
(Variable!(T, 4, Storage) xs);
}
Constructors
this
this
(int nhidden, int nout)
Undocumented in source.
Members
Aliases
L
alias
L
=
Linear
!(
T
,
Storage
)
Undocumented in source.
Functions
opCall
auto
opCall
(Variable!(T, 4, Storage) xs)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
conv
Convolution
!(
float
,
2
,
Storage
)
conv
;
Undocumented in source.
fc1
L
fc1
;
fc2
L
fc2
;
fc3
L
fc3
;
Undocumented in source.
Meta
Source
See Implementation
example
cifar
aliases
S
functions
dumpPNG
main
prepareDataset
structs
Dataset
Model