Skip to content

Commit 7ce1448

Browse files
committed
Fix stateful unrolled RNNs in Theano
1 parent 55159cf commit 7ce1448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/backend/theano_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def rnn(step_function, inputs, initial_states,
576576
successive_states = []
577577
states = initial_states
578578
for i in indices:
579-
output, new_states = step_function(inputs[i], states)
579+
output, new_states = step_function(inputs[i], states + constants)
580580

581581
if len(successive_outputs) == 0:
582582
prev_output = zeros_like(output)

0 commit comments

Comments
 (0)