public struct Sequential<Layer1: Module, Layer2: Layer>: Module
    where Layer1.Output == Layer2.Input,
          Layer1.TangentVector.VectorSpaceScalar == Layer2.TangentVector.VectorSpaceScalar

A layer that sequentially composes two other layers.

  • Declaration

    public var layer1: Layer1
  • Declaration

    public var layer2: Layer2
  • Declaration

    public init(_ layer1: Layer1, _ layer2: Layer2)
  • Declaration

    @differentiable
    public func callAsFunction(_ input: Layer1.Input) -> Layer2.Output
  • Declaration

    public init(@LayerBuilder layers: () -> `Self`)
  • Declaration

    @differentiable
    public func callAsFunction(_ input: Layer1.Input) -> Layer2.Output