Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { nn.BaseModel W nn.Param `spago:"type:weights"` WRec nn.Param `spago:"type:weights"` WS []nn.Param `spago:"type:weights"` // coefficient vectors for scaling B nn.Param `spago:"type:biases"` Order int States []*State `spago:"scope:processor"` }
Model implements a variant of the Feedforward Sequential Memory Networks (https://arxiv.org/pdf/1512.08301.pdf) where the neurons in the same hidden layer are independent of each other and they are connected across layers as in the IndRNN.
func (*Model) Forward ¶
Forward performs the forward step for each input node and returns the result.
func (*Model) SetInitialState ¶
SetInitialState sets the initial state of the recurrent network. It panics if one or more states are already present.
Click to show internal directories.
Click to hide internal directories.