Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
35bf8b93
提交
35bf8b93
authored
9月 09, 2014
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CRASH] for THEANO_FLAGS=optimizer=merge,device=gpu python -c 'import theano'
上级
ac7c1c96
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
6 行删除
+8
-6
mode.py
theano/compile/mode.py
+8
-6
没有找到文件。
theano/compile/mode.py
浏览文件 @
35bf8b93
...
@@ -89,17 +89,19 @@ def register_linker(name, linker):
...
@@ -89,17 +89,19 @@ def register_linker(name, linker):
exclude
=
[]
exclude
=
[]
if
not
theano
.
config
.
cxx
:
if
not
theano
.
config
.
cxx
:
exclude
=
[
'cxx_only'
]
exclude
=
[
'cxx_only'
]
OPT_NONE
=
gof
.
Query
(
include
=
[],
exclude
=
exclude
)
OPT_MERGE
=
gof
.
Query
(
include
=
[
'merge'
],
exclude
=
exclude
)
OPT_FAST_RUN
=
gof
.
Query
(
include
=
[
'fast_run'
],
exclude
=
exclude
)
OPT_FAST_RUN
=
gof
.
Query
(
include
=
[
'fast_run'
],
exclude
=
exclude
)
OPT_FAST_RUN_STABLE
=
OPT_FAST_RUN
.
requiring
(
'stable'
)
OPT_FAST_RUN_STABLE
=
OPT_FAST_RUN
.
requiring
(
'stable'
)
OPT_FAST_COMPILE
=
gof
.
Query
(
include
=
[
'fast_compile'
],
exclude
=
exclude
)
OPT_FAST_COMPILE
=
gof
.
Query
(
include
=
[
'fast_compile'
],
exclude
=
exclude
)
OPT_STABILIZE
=
gof
.
Query
(
include
=
[
'fast_run'
],
exclude
=
exclude
)
OPT_STABILIZE
=
gof
.
Query
(
include
=
[
'fast_run'
],
exclude
=
exclude
)
OPT_NONE
=
gof
.
Query
(
include
=
[],
exclude
=
exclude
)
OPT_STABILIZE
.
position_cutoff
=
1.5000001
OPT_STABILIZE
.
position_cutoff
=
1.5000001
OPT_NONE
.
name
=
'OPT_NONE'
OPT_MERGE
.
name
=
'OPT_MERGE'
OPT_FAST_RUN
.
name
=
'OPT_FAST_RUN'
OPT_FAST_RUN
.
name
=
'OPT_FAST_RUN'
OPT_FAST_RUN_STABLE
.
name
=
'OPT_FAST_RUN_STABLE'
OPT_FAST_RUN_STABLE
.
name
=
'OPT_FAST_RUN_STABLE'
OPT_FAST_COMPILE
.
name
=
'OPT_FAST_COMPILE'
OPT_FAST_COMPILE
.
name
=
'OPT_FAST_COMPILE'
OPT_STABILIZE
.
name
=
'OPT_STABILIZE'
OPT_STABILIZE
.
name
=
'OPT_STABILIZE'
OPT_NONE
.
name
=
'OPT_NONE'
predefined_optimizers
=
{
predefined_optimizers
=
{
None
:
OPT_NONE
,
None
:
OPT_NONE
,
...
@@ -168,14 +170,14 @@ class PrintCurrentFunctionGraph(gof.Optimizer):
...
@@ -168,14 +170,14 @@ class PrintCurrentFunctionGraph(gof.Optimizer):
optdb
=
gof
.
SequenceDB
()
optdb
=
gof
.
SequenceDB
()
optdb
.
register
(
'merge1'
,
gof
.
MergeOptimizer
(),
optdb
.
register
(
'merge1'
,
gof
.
MergeOptimizer
(),
0
,
'fast_run'
,
'fast_compile'
)
0
,
'fast_run'
,
'fast_compile'
,
'merge'
)
# rearranges elemwise expressions
# rearranges elemwise expressions
optdb
.
register
(
'canonicalize'
,
gof
.
EquilibriumDB
(),
optdb
.
register
(
'canonicalize'
,
gof
.
EquilibriumDB
(),
1
,
'fast_run'
,
'fast_compile'
)
1
,
'fast_run'
,
'fast_compile'
)
optdb
.
register
(
'merge1.2'
,
gof
.
MergeOptimizer
(),
optdb
.
register
(
'merge1.2'
,
gof
.
MergeOptimizer
(),
1.2
,
'fast_run'
,
'fast_compile'
)
1.2
,
'fast_run'
,
'fast_compile'
,
'merge'
)
optdb
.
register
(
'Print1.21'
,
PrintCurrentFunctionGraph
(
'Post-canonicalize'
),
optdb
.
register
(
'Print1.21'
,
PrintCurrentFunctionGraph
(
'Post-canonicalize'
),
1.21
,)
# 'fast_run', 'fast_compile')
1.21
,)
# 'fast_run', 'fast_compile')
...
@@ -201,14 +203,14 @@ optdb.register('specialize_device', gof.EquilibriumDB(),
...
@@ -201,14 +203,14 @@ optdb.register('specialize_device', gof.EquilibriumDB(),
# especially constant merge
# especially constant merge
optdb
.
register
(
'merge2'
,
gof
.
MergeOptimizer
(),
optdb
.
register
(
'merge2'
,
gof
.
MergeOptimizer
(),
49
,
'fast_run'
)
49
,
'fast_run'
,
'merge'
)
optdb
.
register
(
'add_destroy_handler'
,
AddDestroyHandler
(),
optdb
.
register
(
'add_destroy_handler'
,
AddDestroyHandler
(),
49.5
,
'fast_run'
,
'inplace'
)
49.5
,
'fast_run'
,
'inplace'
)
# final pass just to make sure
# final pass just to make sure
optdb
.
register
(
'merge3'
,
gof
.
MergeOptimizer
(),
optdb
.
register
(
'merge3'
,
gof
.
MergeOptimizer
(),
100
,
'fast_run'
)
100
,
'fast_run'
,
'merge'
)
class
Mode
(
object
):
class
Mode
(
object
):
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论