Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
ef5a7612
提交
ef5a7612
authored
3月 16, 2012
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix documentation generation on Windows
上级
f5240f36
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
9 行增加
和
3 行删除
+9
-3
op.txt
doc/extending/op.txt
+3
-0
optimization.txt
doc/extending/optimization.txt
+1
-0
pipeline.txt
doc/extending/pipeline.txt
+1
-0
docgen.py
doc/scripts/docgen.py
+4
-3
没有找到文件。
doc/extending/op.txt
浏览文件 @
ef5a7612
...
@@ -289,6 +289,7 @@ node representing the application of Op ``mul`` to inputs ``x`` and
...
@@ -289,6 +289,7 @@ node representing the application of Op ``mul`` to inputs ``x`` and
``y``, giving a Variable instance of type ``double`` as the output.
``y``, giving a Variable instance of type ``double`` as the output.
.. note::
.. note::
Theano relies on the fact that if you call the ``make_node`` method
Theano relies on the fact that if you call the ``make_node`` method
of Apply's first argument on the inputs passed as the Apply's
of Apply's first argument on the inputs passed as the Apply's
second argument, the call will not fail and the returned Apply
second argument, the call will not fail and the returned Apply
...
@@ -315,6 +316,7 @@ contain a single storage cell for the multiplication's variable.
...
@@ -315,6 +316,7 @@ contain a single storage cell for the multiplication's variable.
Here, ``z`` is a list of one element. By default, ``z == [None]``.
Here, ``z`` is a list of one element. By default, ``z == [None]``.
.. note::
.. note::
It is possible that ``z`` does not contain ``None``. If it contains
It is possible that ``z`` does not contain ``None``. If it contains
anything else, Theano guarantees that whatever it contains is what
anything else, Theano guarantees that whatever it contains is what
``perform`` put there the last time it was called with this
``perform`` put there the last time it was called with this
...
@@ -324,6 +326,7 @@ Here, ``z`` is a list of one element. By default, ``z == [None]``.
...
@@ -324,6 +326,7 @@ Here, ``z`` is a list of one element. By default, ``z == [None]``.
:ref:`op` documentation.
:ref:`op` documentation.
.. warning::
.. warning::
We gave ``z`` the Theano type ``double`` in ``make_node``, which means
We gave ``z`` the Theano type ``double`` in ``make_node``, which means
that a Python ``float`` must be put there. You should not put, say, an
that a Python ``float`` must be put there. You should not put, say, an
``int`` in ``z[0]`` because Theano assumes Ops handle typing properly.
``int`` in ``z[0]`` because Theano assumes Ops handle typing properly.
...
...
doc/extending/optimization.txt
浏览文件 @
ef5a7612
...
@@ -232,6 +232,7 @@ arithmetics that your Ops implement. Theano might provide facilities
...
@@ -232,6 +232,7 @@ arithmetics that your Ops implement. Theano might provide facilities
for this somewhere in the future.
for this somewhere in the future.
.. note::
.. note::
:class:`Env` is a Theano structure intended for the optimization
:class:`Env` is a Theano structure intended for the optimization
phase. It is used internally by function and Module and is rarely
phase. It is used internally by function and Module and is rarely
exposed to the end user. You can use it to test out optimizations,
exposed to the end user. You can use it to test out optimizations,
...
...
doc/extending/pipeline.txt
浏览文件 @
ef5a7612
...
@@ -98,6 +98,7 @@ case if ``borrow`` was True, the thunk would be allowed to reuse (or
...
@@ -98,6 +98,7 @@ case if ``borrow`` was True, the thunk would be allowed to reuse (or
"recycle") the storage).
"recycle") the storage).
.. note::
.. note::
Compiled libraries are stored within a specific compilation directory,
Compiled libraries are stored within a specific compilation directory,
which by default is set to ``$HOME/.theano/compiledir_xxx``, where
which by default is set to ``$HOME/.theano/compiledir_xxx``, where
``xxx`` identifies the platform (under Windows the default location
``xxx`` identifies the platform (under Windows the default location
...
...
doc/scripts/docgen.py
浏览文件 @
ef5a7612
...
@@ -57,8 +57,9 @@ import getopt
...
@@ -57,8 +57,9 @@ import getopt
from
collections
import
defaultdict
from
collections
import
defaultdict
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# Equivalent of sys.path[0]/../..
throot
=
"/"
.
join
(
sys
.
path
[
0
]
.
split
(
"/"
)[:
-
2
])
throot
=
os
.
path
.
abspath
(
os
.
path
.
join
(
sys
.
path
[
0
],
os
.
pardir
,
os
.
pardir
))
options
=
defaultdict
(
bool
)
options
=
defaultdict
(
bool
)
options
.
update
(
dict
([
x
,
y
or
True
]
for
x
,
y
in
options
.
update
(
dict
([
x
,
y
or
True
]
for
x
,
y
in
...
@@ -91,7 +92,7 @@ if __name__ == '__main__':
...
@@ -91,7 +92,7 @@ if __name__ == '__main__':
# Make sure the appropriate 'theano' directory is in the PYTHONPATH
# Make sure the appropriate 'theano' directory is in the PYTHONPATH
pythonpath
=
os
.
environ
.
get
(
'PYTHONPATH'
,
''
)
pythonpath
=
os
.
environ
.
get
(
'PYTHONPATH'
,
''
)
pythonpath
=
throot
+
':'
+
pythonpath
pythonpath
=
os
.
pathsep
.
join
([
throot
,
pythonpath
])
os
.
environ
[
'PYTHONPATH'
]
=
pythonpath
os
.
environ
[
'PYTHONPATH'
]
=
pythonpath
if
options
[
'--all'
]
or
options
[
'--epydoc'
]:
if
options
[
'--all'
]
or
options
[
'--epydoc'
]:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论