public struct BidirectionalRecurrentLayer<Cell: RecurrentLayerCell>: Layer
where Cell.TimeStepOutput: Mergeable
Pernyataan
public typealias Input = [Cell.TimeStepInput]
Pernyataan
public typealias Output = [Cell.TimeStepOutput]
Pernyataan
public typealias MergeFunction = @differentiable (Cell.TimeStepOutput, Cell.TimeStepOutput) -> Cell.TimeStepOutput
Lapisan berulang maju.
Pernyataan
public var forward: RecurrentLayer<Cell>
Lapisan berulang mundur.
Pernyataan
public var backward: RecurrentLayer<Cell>
Fungsi terdiferensiasi yang digunakan untuk menggabungkan keluaran lapisan berulang maju dan mundur.
Pernyataan
@noDerivative public var mergeFunction: MergeFunction { get }
Membuat instance dari sel lapisan berulang yang diberikan dan fungsi penggabungan.
Pernyataan
public init(_ cell: @autoclosure () -> Cell, mergeFunction: @escaping MergeFunction = concatenate)
Pernyataan
@differentiable public func lastOutput( from inputs: Input, initialForwardLayerState: Cell.State, initialBackwardLayerState: Cell.State ) -> Cell.TimeStepOutput
Pernyataan
@differentiable public func lastOutput(from inputs: Input) -> Cell.TimeStepOutput