Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { WIn *nn.Param `type:"weights"` WInRec *nn.Param `type:"weights"` BIn *nn.Param `type:"biases"` WOut *nn.Param `type:"weights"` WOutRec *nn.Param `type:"weights"` BOut *nn.Param `type:"biases"` WFor *nn.Param `type:"weights"` WForRec *nn.Param `type:"weights"` BFor *nn.Param `type:"biases"` WCand *nn.Param `type:"weights"` WCandRec *nn.Param `type:"weights"` BCand *nn.Param `type:"biases"` UseRefinedGates bool }
Model contains the serializable parameters.
type Option ¶
type Option func(*Model)
func SetRefinedGates ¶
SetRefinedGates sets whether to use refined gates. Refined Gate: A Simple and Effective Gating Mechanism for Recurrent Units (https://arxiv.org/pdf/2002.11338.pdf) TODO: panic input size and output size are different
type Processor ¶
type Processor struct { nn.BaseProcessor States []*State // contains filtered or unexported fields }
func (*Processor) Forward ¶
Forward performs the forward step for each input and returns the result.
func (*Processor) SetInitialState ¶
Click to show internal directories.
Click to hide internal directories.