Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
805991f1
提交
805991f1
authored
11月 16, 2015
作者:
Pascal Lamblin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3206 from julianser/new_stacktrace_fix
Continued work on #3018: Stacktrace fix
上级
33c97605
84b21aa2
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
10 行增加
和
5 行删除
+10
-5
mode.py
theano/compile/mode.py
+1
-1
fg.py
theano/gof/fg.py
+1
-1
link.py
theano/gof/link.py
+1
-1
op.py
theano/gof/op.py
+1
-1
utils.py
theano/gof/utils.py
+6
-1
opt.py
theano/tensor/opt.py
+0
-0
test_opt.py
theano/tensor/tests/test_opt.py
+0
-0
没有找到文件。
theano/compile/mode.py
浏览文件 @
805991f1
...
...
@@ -199,7 +199,7 @@ optdb.register('merge1', gof.MergeOptimizer(),
# rearranges elemwise expressions
optdb
.
register
(
'canonicalize'
,
gof
.
EquilibriumDB
(
ignore_newtrees
=
False
),
1
,
'fast_run'
,
'fast_compile'
)
1
,
'fast_run'
,
'fast_compile'
,
'canonicalize_db'
)
# Register in the canonizer Equilibrium as a clean up opt the merge opt.
# Without this, as the equilibrium have ignore_newtrees=False, we
# won't merge all nodes if it is set as a global optimizer with
...
...
theano/gof/fg.py
浏览文件 @
805991f1
...
...
@@ -450,7 +450,7 @@ class FunctionGraph(utils.object2):
assert
path
is
not
None
tr
=
getattr
(
r
.
tag
,
'trace'
,
[])
detailed_err_msg
=
""
if
len
(
tr
)
>
0
:
if
type
(
tr
)
is
list
and
len
(
tr
)
>
0
:
detailed_err_msg
+=
"
\n
Backtrace when the variable is created:
\n
"
# Print separate message for each element in
...
...
theano/gof/link.py
浏览文件 @
805991f1
...
...
@@ -168,7 +168,7 @@ def raise_with_op(node, thunk=None, exc_info=None, storage_map=None):
# Print node backtraces
tr
=
getattr
(
node
.
outputs
[
0
]
.
tag
,
'trace'
,
[])
if
len
(
tr
)
>
0
:
if
type
(
tr
)
is
list
and
len
(
tr
)
>
0
:
detailed_err_msg
+=
"
\n
Backtrace when the node is created:
\n
"
# Print separate message for each element in the list of batcktraces
...
...
theano/gof/op.py
浏览文件 @
805991f1
...
...
@@ -542,7 +542,7 @@ class PureOp(object):
"For compute_test_value, one input test value does not"
" have the requested type.
\n
"
)
tr
=
getattr
(
v
.
tag
,
'trace'
,
[])
if
len
(
tr
)
>
0
:
if
type
(
tr
)
is
list
and
len
(
tr
)
>
0
:
detailed_err_msg
+=
(
"
\n
Backtrace when that variable is created:
\n
"
)
# Print separate message for each element in the list
...
...
theano/gof/utils.py
浏览文件 @
805991f1
...
...
@@ -77,6 +77,7 @@ def add_tag_trace(thing, user_line=1):
if
limit
==
-
1
:
limit
=
None
tr
=
simple_extract_stack
(
limit
=
limit
)[:
-
1
]
# Different python version use different sementic for
# limit. python 2.7 include the call to extrack_stack. The -1 get
# rid of it.
...
...
@@ -93,7 +94,11 @@ def add_tag_trace(thing, user_line=1):
"theano/sparse/"
,
"theano
\\
sparse
\\
"
,
"theano/typed_list/"
,
"theano
\\
typed_list
\\
"
,
]:
if
p
in
file_path
:
# Julian: I added the 'tests' exception together with Arnaud.
# Otherwise, we'd lose the stack trace during in our test cases
# (e.g. in test_opt.py). We're not sure this is the right way to
# do it though.
if
p
in
file_path
and
'tests'
not
in
file_path
:
tr
=
tr
[:
-
1
]
rm
=
True
break
...
...
theano/tensor/opt.py
浏览文件 @
805991f1
差异被折叠。
点击展开。
theano/tensor/tests/test_opt.py
浏览文件 @
805991f1
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论