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
Post a Comment