raminmh / liquid_time_constant_networks

Code Repository for Liquid Time-Constant Networks (LTCs)
https://arxiv.org/abs/2006.04439
Apache License 2.0
1.35k stars 254 forks source link

Tensorflow error in import tf.nn.rnn_cell #7

Closed michaelkhany closed 1 year ago

michaelkhany commented 1 year ago
Traceback (most recent call last):
  File "c:\...\experiments_with_ltcs\ctrnn_model.py", line 105, in <module>
    class NODE(tf.nn.rnn_cell.RNNCell):
AttributeError: module 'tensorflow._api.v2.nn' has no attribute 'rnn_cell'

and I've to add, it's not solvable by replacing tf.nn.rnn_cell by tf.compat.v1.nn.rnn_cell Any suggestions?

monika-ntx commented 1 year ago

I replaced by tf.compat.v1.nn.rnn_cell.RNNCell and it worked. You can try.

michaelkhany commented 1 year ago

It works. Thank you.