anassinator / ilqr

Iterative Linear Quadratic Regulator with auto-differentiatiable dynamics models
GNU General Public License v3.0
371 stars 79 forks source link

TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'> in the CartPole example #18

Open piojanu opened 2 years ago

piojanu commented 2 years ago

Hi!

I tried to run your CartPole Jupyter notebook example. However, I run into this problem:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-aa80e5b7db85> in <module>()
      1 dt = 0.05
      2 pole_length = 1.0
----> 3 dynamics = CartpoleDynamics(dt, l=pole_length)

6 frames
/usr/local/lib/python3.7/dist-packages/theano/compile/function/pfunc.py in _pfunc_param_to_in(param, strict, allow_downcast)
    541     elif isinstance(param, In):
    542         return param
--> 543     raise TypeError(f"Unknown parameter type: {type(param)}")
    544 
    545 

TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'>

I run it in colab. I installed your package this way: !pip install -U git+https://github.com/anassinator/ilqr.git. I tried to force install Theano == 1.0.4, but it didn't help.

Can you please help me figure this out?

Thanks, Piotr

piojanu commented 2 years ago

There is the same problem in the Pendulum example, so it's not CartPole dependent.

anassinator commented 2 years ago

This seems like a colab-specific problem. Maybe try running it locally or follow some of the instructions here:

This package isn't actively maintained BTW.