Class Flatten
Flattens the input. Does not affect the batch size.
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 Flatten : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceFlatten(String)
Initializes a new instance of the Flatten class.
Declaration
public Flatten(string data_format = "channels_last")
Parameters
Type | Name | Description |
---|---|---|
System.String | data_format | A string, one of channels_last (default) or channels_first. The ordering of the dimensions in the inputs. The purpose of this argument is to preserve weight ordering when switching a model from one data format to another. channels_last corresponds to inputs with shape (batch, ..., channels) while channels_first corresponds to inputs with shape (batch, channels, ...). It defaults to the image_data_format value found in your Keras config file at ~/.keras/keras.json. If you never set it, then it will be "channels_last". |
Implements
System.IDisposable