python - Theano import error: cannot import name stacklists -


from theano.tensor import stacklists, scalars, matrices  theano import function  a, b, c, d = scalars('abcd')  x = stacklists([[a, b], [c, d]])    f = function([a, b, c, d], x) f(1, 2, 3, 4) 

this program. getting following error.can help

importerror                               traceback (most recent call last) <ipython-input-17-e4e1f4f75320> in <module>() ----> 1 theano.tensor import stacklists, scalars, matrices        2 theano import function        3 a, b, c, d = scalars('abcd')       4 x = stacklists([[a, b], [c, d]])       5 f = function([a, b, c, d], x)  importerror: cannot import name stacklists 

you have old version of theano; stacklist recently introduced/renamed (a month ago). sou should update latest/dev version. if want stay in version try importing tensor_of_scalars instead of stacklist.

to update follow instructions here.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -