from theano.tensor import stacklists, scalars, matrices
from 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)
這是我的程序。 我得到以下error.can人幫助Theano進口錯誤:無法導入名稱堆棧列表
ImportError Traceback (most recent call last)
<ipython-input-17-e4e1f4f75320> in <module>()
----> 1 from theano.tensor import stacklists, scalars, matrices
2 from 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
我有2.7.3版本。 – subha
謝謝你elyase。我們是否可以更新此版本?如何更新。 – subha