RNN
- class opennmt.layers.RNN(*args, **kwargs)[source]
A simple RNN layer.
Inherits from:
keras.src.engine.base_layer.Layer
- __init__(cell, bidirectional=False, reducer=<opennmt.layers.reducer.ConcatReducer object>, **kwargs)[source]
Initializes the layer.
- Parameters
cell – The RNN cell to use.
bidirectional – Make this layer bidirectional.
reducer – A
opennmt.layers.Reducer
instance to merge bidirectional states and outputs.**kwargs – Additional layer arguments.
See also