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

Can I know how is it possible to run the code with the latest version of tensorflow. #11

Closed sai-kiran7 closed 5 months ago

sai-kiran7 commented 5 months ago

Because I am facing a lot of errors by using the latest version of Tensorflow. Any insights from anyone is appreciated. Thank you in advance

TANRININresulu commented 5 months ago

Can you share error messages you have facing together with exact version number of tensorflow you are using?

sai-kiran7 commented 5 months ago

AttributeError: 'CTRNN' object has no attribute '_dynamic'. Did you mean: 'dynamic'?

TensorFlow version: 2.15.0

patel-om commented 5 months ago

Do this Everywhere, Replace: import tensorflow as tf

With: import tensorflow.compat.v1 as tf tf.disable_v2_behavior()

sai-kiran7 commented 5 months ago

It worked Thank you @patel-om

sai-kiran7 commented 5 months ago

Hi @patel-om , did you tried to test on the time series data? , if so how did you pass the test input and got output? Any insights over this will be helpful. Thank you in advance