rnn-benchmarks icon indicating copy to clipboard operation
rnn-benchmarks copied to clipboard

API mismatches with latest TensorFlow

Open TaoLv opened this issue 6 years ago • 1 comments

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.

TaoLv avatar Oct 23 '17 08:10 TaoLv

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.

daniellowell avatar Jan 22 '18 22:01 daniellowell