Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
74eb33c5
提交
74eb33c5
authored
4月 21, 2013
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Better wording for some documentation
上级
a2168c05
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
13 行删除
+16
-13
optimization.txt
doc/extending/optimization.txt
+4
-3
config.txt
doc/library/config.txt
+7
-6
mode.py
theano/compile/mode.py
+1
-1
configdefaults.py
theano/configdefaults.py
+4
-3
没有找到文件。
doc/extending/optimization.txt
浏览文件 @
74eb33c5
...
...
@@ -21,9 +21,10 @@ In this section we will define a couple optimizations on doubles.
.. note::
There is the optimization tag `cxx_only` that tell this
optimization will insert Op that only have c code. So we should not
run them when we don't have a c++ compiler.
The optimization tag `cxx_only` is used for optimizations that insert
Ops which have no Python implementation (so they only have C code).
Optimizations with this tag are skipped when there is no C++ compiler
available.
Global and local optimizations
==============================
...
...
doc/library/config.txt
浏览文件 @
74eb33c5
...
...
@@ -410,17 +410,18 @@ import theano and print the config variable, as in:
.. attribute:: config.cxx
Default: 'g++' if g++ is present.
'' O
therwise.
Default: 'g++' if g++ is present.
Empty string o
therwise.
Tell the c++ compiler to use. If empty, don't compile c++ code
.
We automatically detect if g++ is present and disable it if not
presen
t.
Indicates which C++ compiler to use. If empty, no C++ code is compiled
.
Theano automatically detects whether g++ is present and disables
C++ compilation when it is no
t.
We print a warning if we detect that g++ is not present. It is
recommended to run with
c
++ compilation as Theano will be much
recommended to run with
C
++ compilation as Theano will be much
slower otherwise.
Currently only g++ is supported, but supporting others is easy.
Currently only g++ is supported, but supporting other compilers should
not be too difficult.
.. attribute:: optimizer_excluding
...
...
theano/compile/mode.py
浏览文件 @
74eb33c5
...
...
@@ -86,7 +86,7 @@ def register_linker(name, linker):
# If a string is passed as the optimizer argument in the constructor
# for Mode, it will be used as the key to retrieve the real optimizer
# in this dictionary
exclude
=
[]
exclude
=
[]
if
not
theano
.
config
.
cxx
:
exclude
=
[
'cxx_only'
]
OPT_FAST_RUN
=
gof
.
Query
(
include
=
[
'fast_run'
],
exclude
=
exclude
)
...
...
theano/configdefaults.py
浏览文件 @
74eb33c5
...
...
@@ -131,9 +131,10 @@ else:
enum
=
EnumStr
(
""
)
AddConfigVar
(
'cxx'
,
"The c++ compiler to use. Currently only g++ is"
" supported. But supporting more is easy if someone want this."
"If it is empty, we don't compile c++ code."
,
"The C++ compiler to use. Currently only g++ is"
" supported, but supporting additional compilers should not be "
"too difficult. "
"If it is empty, no C++ code is compiled."
,
enum
,
in_c_key
=
False
)
del
enum
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论