Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
a304ba62
提交
a304ba62
authored
7月 05, 2012
作者:
David Warde-Farley
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #743 from nouiz/import
Import and doc.
上级
8d19662c
ff25da21
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
67 行增加
和
8 行删除
+67
-8
dev_start_guide.txt
doc/dev_start_guide.txt
+0
-0
index.txt
doc/index.txt
+1
-0
install.txt
doc/install.txt
+57
-6
configdefaults.py
theano/configdefaults.py
+1
-2
vm.py
theano/gof/vm.py
+8
-0
没有找到文件。
doc/dev_start_guide.txt
浏览文件 @
a304ba62
doc/index.txt
浏览文件 @
a304ba62
...
...
@@ -138,6 +138,7 @@ Community
internal/index
examples/index
proposals/index
acknowledgement
LICENSE
...
...
doc/install.txt
浏览文件 @
a304ba62
...
...
@@ -164,7 +164,7 @@ directory; see the `virtualenv documentation`_ for details.
.. _virtualenv documentation: http://virtualenv.openplans.org/
.. _pip: http://pypi.python.org/pypi/pip
.. _
install_bleeding_edge
:
.. _
updating
:
Updating Theano
~~~~~~~~~~~~~~~
...
...
@@ -198,6 +198,7 @@ the Theano cache like this:
theano-cache clear
.. _install_bleeding_edge:
Bleeding-edge install instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
@@ -479,15 +480,67 @@ everything is working properly.
(`libdoc_config`).
.. _Graphviz: http://www.graphviz.org/Download_windows.php
MacOS
-----
There are various ways to install Theano dependencies on a Mac.
Here we describe the process in detail
s using
MacPorts, but if you did
Here we describe the process in detail
with EPD or with
MacPorts, but if you did
it differently and it worked, please let us know the details on the
`theano-users`_ mailing-list, so that we can add alternate instructions
here.
In academia: Enthought Python Distribution (EPD)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you are working in academia, the easiest way to install most of the
dependencies is to install
`Enthought Python Distribution (EPD) <http://enthought.com/products/epd.php>`_.
If you are affiliated with a university (as student or employee), you can
download the installer for free.
EPD installation includes in particular Python (and the development headers),
numpy, scipy, nose, sphinx, easy_install, pydot (but *not* `Graphviz`_, which is
necessary for it to work) and the MKL implementation of blas. The Mac OS and
Linux version do not include g++.
pip is not included in EPD. After the installation of EPD,
you can simply install it with::
.. code-block:: bash
$ sudo easy_install pip
Then in a terminal excute this command to install the lastest Theano release:
.. code-block:: bash
$ sudo pip install Theano
If you want the bleeding edge version, `download
and install git <http://git-scm.com/downloads>`_. Then in a
terminal excute this command:
.. code-block:: bash
$ sudo pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
See the section `install_bleeding_edge`_ for more
information on the bleading edge version.
Then you must install g++. You can do this by installing XCode. See the first bullet in the :ref:`macports` section.
.. note::
If you use the trunk or version 0.6 or later of Theano, we try to
automaticaly link with the EPD blas version. Due to Mac OS
peculiarities, we need a user intervention to do it. We detect
if the user did the modification and if not, we tell him how todo
it.
.. _macports:
MacPorts
~~~~~~~~
...
...
@@ -654,8 +707,8 @@ In academia: EPD
################
If you are working in academia, the easiest way to install most of the
dependencies is to install `Enthought Python Distribution (EPD) <
epd
>`_.
If you are affiliated
to
a university (as student or employee), you can
dependencies is to install `Enthought Python Distribution (EPD) <
http://enthought.com/products/epd.php
>`_.
If you are affiliated
with
a university (as student or employee), you can
download the installation for free.
EPD installation includes in particular Python (and the development headers),
...
...
@@ -687,8 +740,6 @@ pip is not included in EPD, but you can simply install it with::
easy_install pip
.. _epd: http://enthought.com/products/epd.php
.. _Graphviz: http://www.graphviz.org/Download_windows.php
Alternative: Python(x,y)
########################
...
...
theano/configdefaults.py
浏览文件 @
a304ba62
...
...
@@ -138,8 +138,7 @@ except OSError:
AddConfigVar
(
'linker'
,
(
"Default linker used if the theano flags mode is Mode "
"or ProfileMode"
),
EnumStr
(
'py'
,
'c|py'
,
'c'
,
'c|py_nogc'
,
'c&py'
,
'vm'
,
'cvm'
,
'vm_nogc'
,
'cvm_nogc'
),
EnumStr
(
'py'
,
'vm'
,
'vm_nogc'
),
in_c_key
=
False
)
_logger
.
warning
(
'g++ not detected ! Theano will be unable to execute '
'optimized C-implementations (for both CPU and GPU) and will '
...
...
theano/gof/vm.py
浏览文件 @
a304ba62
...
...
@@ -449,6 +449,14 @@ try:
# skip VM.__init__
except
ImportError
:
pass
except
OSError
:
#OSError happen when g++ is not installed. In that case, we
#alread changed the default linker to something else then CVM.
#Currently this is the py linker.
#Here we assert that the default linker is not cvm.
assert
not
[
x
for
x
in
theano
.
configparser
.
_config_var_list
if
x
.
fullname
==
'linker'
][
0
]
.
default
.
startswith
(
'cvm'
)
pass
class
VM_Linker
(
link
.
LocalLinker
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论