Method: CooCoo::Recurrence::Backend#forward
- Defined in:
- lib/coo-coo/recurrence/backend.rb
#forward(inputs, hidden_state) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/coo-coo/recurrence/backend.rb', line 33 def forward(inputs, hidden_state) hidden_state ||= Hash.new hidden_state[self] ||= Array.new hidden_state[self].push(inputs[size, recurrent_size]) return inputs[0, size], hidden_state end |