Class Sequential
The Sequential model is a linear stack of layers. You can create a Sequential model by passing a list of layer instances to the constructor
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.Models
Assembly: Keras.dll
Syntax
public class Sequential : BaseModel, IDisposable
Constructors
| Improve this Doc View SourceSequential()
Initializes a new instance of the Sequential class.
Declaration
public Sequential()
Sequential(BaseLayer[])
Initializes a new instance of the Sequential class.
Declaration
public Sequential(BaseLayer[] layers)
Parameters
Type | Name | Description |
---|---|---|
BaseLayer[] | layers | The layers. |
Methods
| Improve this Doc View SourceAdd(BaseLayer)
You can also simply add layers via the .Add() method
Declaration
public void Add(BaseLayer layer)
Parameters
Type | Name | Description |
---|---|---|
BaseLayer | layer | The layer. |
Implements
System.IDisposable