我刚开始玩 Theano,但在 Eclipse 中有一个奇怪的问题。我正在尝试导入配置模块来运行一些示例代码。导入工作正常,我可以看到模块中的内容。
这是我正在尝试的简单代码:
from theano import config
print config
这工作正常,我得到如下输出:
floatX (('float64', 'float32'))
Doc: Default floating-point precision for python casts
Value: float32
...
还有一些类似的行。不幸的是,如果我使用以下代码,我会收到 floatX 的“来自导入的未定义变量”错误:
from theano import config
print config.floatX
这仅在 Eclipse 中发生。在控制台中,我得到“float32”,这是正确的输出。知道为什么会发生这种情况以及我如何才能给我该变量背后的价值吗?谢谢!
系统:OSX 10.9.2/Python:2.7.6(Macports 安装)/Theano:0.6.0(Macports 安装)/Eclipse:Kepler Service Release 2