我需要让Theano在我的Mac上运行以进行学校项目。我从here(表格的第一行)下载了源代码,并将未处理的文件放在我学校项目的库中。我不知道这是否足够,所以我也使用pip install Theano
。自从我得到这个以来,一切似乎都很好:
You are using pip version 6.1.1, however version 7.0.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): Theano in ./anaconda/lib/python2.7/site-packages/Theano-0.7.0-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.2 in ./anaconda/lib/python2.7/site-packages (from Theano)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.11 in ./anaconda/lib/python2.7/site-packages (from Theano)
如你所见,我正在使用Anaconda。
然而,当我在python控制台中运行测试时,我收到了这些消息:
>>> import theano
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
>>> theano.test()
Theano version 0.7.0
theano is installed in /Users/usersos/anaconda/lib/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano
NumPy version 1.9.2
NumPy is installed in /Users/usersos/anaconda/lib/python2.7/site-packages/numpy
Python version 2.7.9 |Anaconda 2.2.0 (x86_64)| (default, Dec 15 2014, 10:37:34) [GCC 4.2.1 (Apple Inc. build 5577)]
nose version 1.3.4
/Users/usersos/anaconda/lib/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/misc/pycuda_init.py:34: UserWarning: PyCUDA import failed in theano.misc.pycuda_init
warnings.warn("PyCUDA import failed in theano.misc.pycuda_init")
..........S.......S..S...S.S...................K.................E/Users/usersos/anaconda/lib/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/compile/profilemode.py:103: UserWarning: DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano flags/parameter to theano.function 'profile=True' instead of 'mode=ProfileMode'
"DEPRECATION WARNING: The ProfileMode is deprecated. Use the Theano"
.............................................................SSSSSS...SS.........S............................................................................S..................................................S......S.F.SS..SSSSSSSSSSSSSSSSSSSSS../Users/usersos/anaconda/lib/python2.7/site-packages/Theano-0.7.0-py2.7.egg/theano/sandbox/cuda/type.py:541: UserWarning: config.experimental.unpickle_gpu_on_cpu is set to True. Unpickling CudaNdarray as numpy.ndarray
warnings.warn("config.experimental.unpickle_gpu_on_cpu is set to True. Unpickling CudaNdarray as numpy.ndarray")
.SSSSSSSSSSSS.....KK...................S.....SSSSS
有什么问题吗? Theano及其编译器安装得好吗? 我尝试了this tutorial的第一个例子,并且没有任何错误也有相同的结果。但我想知道如果我使用更复杂的函数和类是否会有任何错误。