RecurrentLayer

public struct RecurrentLayer<Cell> : Layer where Cell : RecurrentLayerCell
extension RecurrentLayer: Equatable where Cell: Equatable
extension RecurrentLayer: AdditiveArithmetic where Cell: AdditiveArithmetic
  • Declaration

    public typealias Input = [Cell.TimeStepInput]
  • Declaration

    public typealias Output = [Cell.TimeStepOutput]
  • Declaration

    public var cell: Cell
  • Declaration

    public init(_ cell: @autoclosure () -> Cell)
  • Declaration

    @differentiable(wrt: (self, inputs, initialState)
    public func callAsFunction(
      _ inputs: [Cell.TimeStepInput],
      initialState: Cell.State
    ) -> [Cell.TimeStepOutput]
  • Declaration

    @differentiable(wrt: (self, inputs, initialState)
    public func call(
      _ inputs: [Cell.TimeStepInput],
      initialState: Cell.State
    ) -> [Cell.TimeStepOutput]
  • Declaration

    @differentiable
    public func callAsFunction(_ inputs: [Cell.TimeStepInput]) -> [Cell.TimeStepOutput]
  • Declaration

    @differentiable(wrt: (self, inputs, initialState)
    public func lastOutput(
      from inputs: [Cell.TimeStepInput],
      initialState: Cell.State
    ) -> Cell.TimeStepOutput
  • Declaration

    @differentiable(wrt: (self, inputs)
    ) public func lastOutput(from inputs: [Cell.TimeStepInput]) -> Cell.TimeStepOutput