public protocol RNNCell: Layer
where
Input == RNNCellInput<TimeStepInput, State>,
Output == RNNCellOutput<TimeStepOutput, State>
Tekrarlayan bir sinir ağı hücresi.
Bir zaman adımındaki giriş.
beyan
associatedtype TimeStepInput : Differentiable where Self.Input == RNNCellInput<Self.TimeStepInput, Self.State>
Bir zaman adımındaki çıktı.
beyan
associatedtype TimeStepOutput : Differentiable where Self.Output == RNNCellOutput<Self.TimeStepOutput, Self.State>
Zaman adımlarında korunabilecek durum.
beyan
associatedtype State : Differentiable
Sağlanan girişle uyumlu şekle sahip sıfır değerli bir durumu döndürür.
beyan
func zeroState(for input: TimeStepInput) -> State
RNN hücresinin geçerli zaman adımındaki girişe ve önceki duruma uygulanmasıyla elde edilen yeni durumu döndürür.
beyan
@differentiable public func callAsFunction( input: TimeStepInput, state: State ) -> RNNCellOutput<TimeStepOutput, State>
Parametreler
timeStepInput
Geçerli zaman adımındaki giriş.
previousState
RNN hücresinin önceki durumu.
Geri dönüş değeri
Çıktı.
beyan
@differentiable public func call(input: TimeStepInput, state: State) -> RNNCellOutput<TimeStepOutput, State>