首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >模中找不到Theano函数theano.tensor.shape_padaxis

模中找不到Theano函数theano.tensor.shape_padaxis
EN

Stack Overflow用户
提问于 2015-12-06 20:39:35
回答 1查看 141关注 0票数 0

我正在尝试使用theano.tensor.shape_padaxis,如这里所示。我知道这个错误:

AttributeError:“模块”对象没有属性“shape_padaxis”

我正在使用python2.7和theano 0.7,其他的一切似乎都是正确的。

代码语言:javascript
复制
$ python
>>> import theano
>>> theano.version.version
'0.7.0'
>>> tensor = theano.tensor.tensor3()
>>> theano.tensor.shape_padright(tensor)
DimShuffle{0,1,2,x}.0
>>> theano.tensor.shape_padaxis(tensor,axis=0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'shape_padaxis'

有人能复制吗?知道那是从哪来的吗?谢谢

EN

回答 1

Stack Overflow用户

发布于 2015-12-07 17:06:44

谷歌集团中为theano用户获得了答案。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34122445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档