Documentation ¶
Overview ¶
Package srnn implements the SRNN (Shuffling Recurrent Neural Networks) by Rotman and Wolf, 2020. (https://arxiv.org/pdf/2007.07324.pdf)
This file implements a bidirectional variant of the SRNN, in which the input features are shared among the two directions (Grella, 2021).
Package srnn implements the SRNN (Shuffling Recurrent Neural Networks) by Rotman and Wolf, 2020. (https://arxiv.org/pdf/2007.07324.pdf)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BiModel ¶ added in v0.4.0
type BiModel struct { nn.BaseModel Config Config FC *stack.Model FC2 *linear.Model FC3 *linear.Model LayerNorm *layernorm.Model }
BiModel contains the serializable parameters.
func NewBidirectional ¶ added in v0.4.0
NewBidirectional returns a new model with parameters initialized to zeros.
type Config ¶
type Config struct { InputSize int HiddenSize int NumLayers int HyperSize int OutputSize int MultiHead bool }
Config provides configuration settings for a SRNN Model.
Click to show internal directories.
Click to hide internal directories.