golem ~master (2021-09-25T16:54:00Z)
Dub
Repo
Perceptron
golem
nn
Undocumented in source.
class
Perceptron (
T
alias
activateFn
size_t
InputDim
size_t
HiddenDim
size_t
OutputDim
UseGradient
useGrad
=
UseGradient
.
yes
) {
Linear
!(
T
,
InputDim
,
HiddenDim
,
useGrad
)
fc1
;
Linear
!(
T
,
HiddenDim
,
OutputDim
,
useGrad
)
fc2
;
alias
parameters
=
AliasSeq
!(
fc1
,
fc2
)
;
this
();
auto
opCall
(U x);
}
Constructors
this
this
()
Undocumented in source.
Members
Aliases
parameters
alias
parameters
=
AliasSeq
!(
fc1
,
fc2
)
Undocumented in source.
Functions
opCall
auto
opCall
(U x)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
fc1
Linear
!(
T
,
InputDim
,
HiddenDim
,
useGrad
)
fc1
;
Undocumented in source.
fc2
Linear
!(
T
,
HiddenDim
,
OutputDim
,
useGrad
)
fc2
;
Undocumented in source.
Meta
Source
See Implementation
golem
nn
classes
BatchNorm
Conv2D
LiftPool2D
Linear
Perceptron
Sequence
enums
hasParameters
structs
Activation