Skip to content

Commit

Permalink
Fix renamed inbound_nodes in CuDNN recurrent test. (keras-team#9127)
Browse files Browse the repository at this point in the history
- forgotten in commit 958239c (Make private topological properties Python-private)
- rename inbound_nodes to _inbound_nodes
- BTW: tests from cudnn_recurrent_test.py are not ran on Travis CI (without GPU)
  • Loading branch information
bzamecnik authored and fchollet committed Jan 19, 2018
1 parent 950e5d0 commit 58cf550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/keras/layers/cudnn_recurrent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def test_specify_initial_state_keras_tensor():
output = layer(inputs, initial_state=initial_state[0])
else:
output = layer(inputs, initial_state=initial_state)
assert initial_state[0] in layer.inbound_nodes[0].input_tensors
assert initial_state[0] in layer._inbound_nodes[0].input_tensors

model = keras.models.Model([inputs] + initial_state, output)
model.compile(loss='categorical_crossentropy', optimizer='adam')
Expand Down

0 comments on commit 58cf550

Please sign in to comment.