Class Permute
Permutes the dimensions of the input according to a given pattern. Useful for e.g.connecting RNNs and convnets together.
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 Permute : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourcePermute(Int32, Shape)
Initializes a new instance of the Permute class.
Declaration
public Permute(int dims, Shape input_shape = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | dims | Tuple of integers. Permutation pattern, does not include the samples dimension. Indexing starts at 1. For instance, (2, 1) permutes the first and second dimension of the input. |
Shape | input_shape | Arbitrary. Use the keyword argument input_shape (tuple of integers, does not include the samples axis) when using this layer as the first layer in a model. |
Implements
System.IDisposable