Class Bidirectional
Bidirectional wrapper for RNNs.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Layers
Assembly: Keras.dll
Syntax
public class Bidirectional : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceBidirectional(BaseLayer, String, NDarray)
Initializes a new instance of the Bidirectional class.
Declaration
public Bidirectional(BaseLayer layer, string merge_mode = "concat", NDarray weights = null)
Parameters
Type | Name | Description |
---|---|---|
BaseLayer | layer | The recurrent layer instance. |
System.String | merge_mode | Mode by which outputs of the forward and backward RNNs will be combined. One of {'sum', 'mul', 'concat', 'ave', None}. If None, the outputs will not be combined, they will be returned as a list. |
Numpy.NDarray | weights | Initial weights to load in the Bidirectional model. |
Implements
System.IDisposable