Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
4b6ea980
提交
4b6ea980
authored
1月 19, 2010
作者:
Dumitru Erhan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated installation instructions
上级
019b7039
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
73 行增加
和
38 行删除
+73
-38
install.txt
doc/install.txt
+66
-29
dev_start_guide.txt
doc/internal/dev_start_guide.txt
+7
-9
没有找到文件。
doc/install.txt
浏览文件 @
4b6ea980
...
@@ -20,7 +20,7 @@ to be installed:
...
@@ -20,7 +20,7 @@ to be installed:
We develop mainly on 64-bit Linux machines. 32-bit architectures are
We develop mainly on 64-bit Linux machines. 32-bit architectures are
not well-tested.
not well-tested.
python >= 2.5
python >= 2.5
(2.4 should be supported as well)
`numpy <http://numpy.scipy.org/>`_ >= 1.2
`numpy <http://numpy.scipy.org/>`_ >= 1.2
Earlier versions have memory leaks.
Earlier versions have memory leaks.
...
@@ -30,6 +30,8 @@ to be installed:
...
@@ -30,6 +30,8 @@ to be installed:
is buggy in 0.6. (scipy.csc_matrix dot has a bug with singleton
is buggy in 0.6. (scipy.csc_matrix dot has a bug with singleton
dimensions. There may be more bugs.)
dimensions. There may be more bugs.)
A BLAS installation (with Level 3 functionality)
The following libraries and software are optional:
The following libraries and software are optional:
g++, python-dev
g++, python-dev
...
@@ -42,41 +44,49 @@ The following libraries and software are optional:
...
@@ -42,41 +44,49 @@ The following libraries and software are optional:
`mercurial <http://www.selenic.com/mercurial/>`_
`mercurial <http://www.selenic.com/mercurial/>`_
To download bleeding-edge version of Theano.
To download bleeding-edge version of Theano.
.. _install_bleeding_edge:
Getting the code
-----------------
Easy install
If you are a developer of Theano, then check out the :ref:`dev_start_guide` guide.
------------
The following
command will install the latest release of Theano
The following
are general instructions that will set you up with the bleeding-edge
on your system
:
version of Theano. First, get the code using `mercurial <http://www.selenic.com/mercurial/wiki/>`__
:
.. code-block:: bash
.. code-block:: bash
easy_install
Theano
hg clone http://hg.assembla.com/theano
Theano
Manual install
Configuring PYTHONPATH
--------------
---------------------------
The subdirectory Theano/theano has to be located in a path
mentioned in your PYTHONPATH. In order to do that, you can either
create a symbolic link to Theano/theano in a directory already
mentioned in your PYTHONPATH environment variable, or modify the
PYTHONPATH so that it mentions Theano.
To install the latest release of Theano from source, visit the `downloads
To create a symbolic link:
<http://pylearn.org/theano/downloads/>`_ page and download the release you
want. Unpack the release, and type:
.. code-block:: bash
.. code-block:: bash
python setup.py build
ln -s Theano/theano <someplace on your PYTHONPATH>/theano
python setup.py test
python setup.py install
.. _install_bleeding_edge
:
To modify the environment variable PYTHONPATH in bash, you may do this
:
Bleeding Edge
.. code-block:: bash
--------------
Feeling lucky and want to run bleeding-edge code?
export PYTHONPATH=<path to Theano's parent dir>/Theano:$PYTHONPATH
Then check out the :ref:`dev_start_guide` guide.
In csh:
Configuring the environment
.. code-block:: csh
---------------------------
setenv PYTHONPATH <path to Theano's parent dir>/Theano:$PYTHONPATH
Configuring Theano's environmental variables
---------------------------------------------
Two environment variables are used to control automatic code
Two environment variables are used to control automatic code
generation. It is possible to use Theano in a way which avoids all
generation. It is possible to use Theano in a way which avoids all
...
@@ -118,29 +128,56 @@ automatic code generation, but that way is much, much slower.
...
@@ -118,29 +128,56 @@ automatic code generation, but that way is much, much slower.
Omitting this variable defaults the mode to ``'FAST_RUN'``.
Omitting this variable defaults the mode to ``'FAST_RUN'``.
Testing your installation
---------------------------
Once you have completed these steps, you should run the theano test suite like this:
.. code-block:: bash
cd Theano
nosetests #execute all the tests
All tests should pass. If some test fails on your machine, you are
encouraged to tell us what went wrong on the ``theano-users@googlegroups.com``
mailing list.
Updating
-------------
To update your library to the latest revision, change directory (``cd``)
to your ``Theano`` folder and execute the following command:
.. code-block:: bash
hg pull -u
Mac
Mac
---
---
These installation instructions have not tested recently, please infom us of your results!
We would be especially interested in dependencies that we missed listing, as well as tests
that fail on your platform (use the ``theano-users@googlegroups.com`` mailing list).
- Install `MacPorts <http://www.macports.org/>`__.
- Install `MacPorts <http://www.macports.org/>`__.
-
-
.. code-block:: bash
.. code-block:: bash
$ sudo port install gcc4
2
py25-zlib py25-numpy py25-scipy mercurial
$ sudo port install gcc4
4
py25-zlib py25-numpy py25-scipy mercurial
Note that compiling gcc
42
takes a significant time (hours) so it is probably
Note that compiling gcc takes a significant time (hours) so it is probably
not the best solution if you are in a rush! It may happen that SciPy
not the best solution if you are in a rush! It may happen that SciPy
fails to compile the first time and still compiles just fine on a second
fails to compile the first time and still compiles just fine on a second
try. Same thing with py25-zlib.
try. Same thing with py25-zlib.
-
Install some kind of BLAS library (TODO: how?)
-
scipy depends on ATLAS (a BLAS library), which will be installed by MacPorts.
- Set ``THEANO_BLAS_LDFLAGS`` to something which will link against said BLAS
- Set ``THEANO_BLAS_LDFLAGS`` to something which will link against said BLAS
library. E.g., ``THEANO_BLAS_LDFLAGS='-lcblas -latlas -lgfortran'``.
library. E.g., ``THEANO_BLAS_LDFLAGS='-lcblas -latlas -lgfortran'``.
This advice has not been tested recently, so please inform us of your results.
Windows
Windows
-------
-------
...
@@ -247,9 +284,9 @@ Generating the documentation
...
@@ -247,9 +284,9 @@ Generating the documentation
----------------------------
----------------------------
You can read the latest HTML documentation `here
You can read the latest HTML documentation `here
<http://
pylearn.org/theano/contents.html
>`__.
<http://
deeplearning.net/theanodoc
>`__.
You can download the latest PDF documentation `here
You can download the latest PDF documentation `here
<http://
pylearn.org/theano
/theano.pdf>`__.
<http://
deeplearning.net/theanodoc
/theano.pdf>`__.
We recommend you look at the documentation on the website, since it
We recommend you look at the documentation on the website, since it
will be more current than the documentation included with the package.
will be more current than the documentation included with the package.
...
...
doc/internal/dev_start_guide.txt
浏览文件 @
4b6ea980
...
@@ -21,11 +21,10 @@ Developer Start Guide
...
@@ -21,11 +21,10 @@ Developer Start Guide
Accounts
Accounts
========
========
To obtain developer access: send an email to an admin with an username and
To obtain developer access: register with `Assembla
temporary password. Pending approval, this will give you access to both the
<http://www.assembla.com/>`_ and add yourself as a watcher on the `Theano space
repository and Trac. You should then change your password in the
<http://www.assembla.com/spaces/theano>`_. Then send an email to an admin asking
`<http://pylearn.org/theano/prefs preferences>` tab - do *NOT* use a good
to be promoted to a member of the project.
password! We are using plain text http which is not secure.
Theano code
Theano code
...
@@ -34,10 +33,9 @@ Theano code
...
@@ -34,10 +33,9 @@ Theano code
*To get the source via mercurial,* you must have `mercurial
*To get the source via mercurial,* you must have `mercurial
<http://www.selenic.com/mercurial/wiki/>`__ installed.
<http://www.selenic.com/mercurial/wiki/>`__ installed.
The code that makes up Theano is in a single repository available in
The code that makes up Theano is in a `single repository
`<http://pylearn.org/hg/Theano>`__.
<http://www.assembla.com/spaces/theano/trac_mercurial_tool>`__. As a developer,
you should clone this repository like this:
As a developer, you should clone this repository like this:
.. code-block:: bash
.. code-block:: bash
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论