Class TimeDistributed
This wrapper applies a layer to every temporal slice of an input. The input should be at least 3D, and the dimension of index one will be considered to be the temporal dimension. Consider a batch of 32 samples, where each sample is a sequence of 10 vectors of 16 dimensions. The batch input shape of the layer is then (32, 10, 16), and the input_shape, not including the samples dimension, is (10, 16). You can then use TimeDistributed to apply a Dense layer to each of the 10 timesteps, independently:
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 TimeDistributed : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceTimeDistributed(BaseLayer)
Initializes a new instance of the TimeDistributed class.
Declaration
public TimeDistributed(BaseLayer layer)
Parameters
Type | Name | Description |
---|---|---|
BaseLayer | layer | The layer instance. |
Implements
System.IDisposable