Unknown parameter variable theano, can't get the package to work on Mac

211 views
Skip to first unread message

Leo

unread,
Nov 29, 2021, 9:09:36 AM11/29/21
to theano-users
I have some issues with theano package on my mac. I am getting the following error.
  

    File "/Users/model.py", line 355, in train
        train_model = theano.function(
    
      File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/__init__.py", line 337, in function
        fn = pfunc(
    
      File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 426, in pfunc
        inputs = [
    
      File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 427, in <listcomp>
        _pfunc_param_to_in(p, allow_downcast=allow_input_downcast) for p in params
    
      File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 543, in _pfunc_param_to_in
        raise TypeError(f"Unknown parameter type: {type(param)}")
    
    TypeError: Unknown parameter type: <class 'theano.tensor.var.TensorVariable'>


I already tried setting this:

    theano.config.floatX = 'float64'

but didn't help unfortunately. 

I have the following versions of the packages.
python version 3.8.8
theano version 1.0.5
pymc3 version 3.11.1
Reply all
Reply to author
Forward
0 new messages