rnn-benchmarks
rnn-benchmarks copied to clipboard
API mismatches with latest TensorFlow
Great benchmark for evaluting RNN units with different frameworks. But the world is changing fast and TensorFlow has evolved to version 1.4.0rc0. The benchmark for TenforFlow depends on some deprecated APIs which have been removed or replaced.
$ python rnn.py -n basic_lstm -b 32 -l 128 -s 30
basic_lstm
Compiling...
Traceback (most recent call last):
File "rnn.py", line 59, in <module>
output, _cell_state = rnn.rnn(cell, x, dtype=tf.float32)
AttributeError: 'module' object has no attribute 'rnn'
Hope you can update the code to follow the latest features of those frameworks. Thanks for your great works.
Same here. From: TF_issue#8049 I used:
output, _cell_state = rnn.static_rnn(cell, x, dtype=tf.float32)
Instead of
output, _cell_state = rnn.rnn(cell, x, dtype=tf.float32)
And I got pass that section.