Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
8954275d
提交
8954275d
authored
5月 21, 2015
作者:
Frederic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More information in error message
上级
dbc61422
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
5 行删除
+10
-5
link.py
theano/gof/link.py
+10
-5
没有找到文件。
theano/gof/link.py
浏览文件 @
8954275d
...
@@ -110,13 +110,17 @@ def raise_with_op(node, thunk=None, exc_info=None, storage_map=None):
...
@@ -110,13 +110,17 @@ def raise_with_op(node, thunk=None, exc_info=None, storage_map=None):
trace
=
()
trace
=
()
exc_value
.
__thunk_trace__
=
trace
exc_value
.
__thunk_trace__
=
trace
exc_value
.
__op_instance__
=
node
exc_value
.
__op_instance__
=
node
if
node
in
node
.
fgraph
.
toposort
():
topo
=
node
.
fgraph
.
toposort
()
exc_value
.
__applynode_index__
=
node
.
fgraph
.
toposort
()
.
index
(
node
)
if
node
in
topo
:
node_index
=
topo
.
index
(
node
)
else
:
else
:
exc_value
.
__applynode_index__
=
None
node_index
=
None
exc_value
.
__applynode_index__
=
node_index
hints
=
[]
hints
=
[]
detailed_err_msg
=
"
\n
Apply node that caused the error: "
+
str
(
node
)
detailed_err_msg
=
"
\n
Apply node that caused the error: "
+
str
(
node
)
if
exc_value
.
__applynode_index__
is
not
None
:
detailed_err_msg
+=
"
\n
Toposort index:
%
d"
%
node_index
types
=
[
getattr
(
ipt
,
'type'
,
'No type'
)
for
ipt
in
node
.
inputs
]
types
=
[
getattr
(
ipt
,
'type'
,
'No type'
)
for
ipt
in
node
.
inputs
]
detailed_err_msg
+=
"
\n
Inputs types:
%
s
\n
"
%
types
detailed_err_msg
+=
"
\n
Inputs types:
%
s
\n
"
%
types
...
@@ -137,10 +141,11 @@ def raise_with_op(node, thunk=None, exc_info=None, storage_map=None):
...
@@ -137,10 +141,11 @@ def raise_with_op(node, thunk=None, exc_info=None, storage_map=None):
shapes
=
"The thunk don't have an inputs attributes."
shapes
=
"The thunk don't have an inputs attributes."
strides
=
"So we can't access the strides of inputs values"
strides
=
"So we can't access the strides of inputs values"
scalar_values
=
"And can't print its inputs scalar value"
scalar_values
=
"And can't print its inputs scalar value"
clients
=
[[
c
[
0
]
for
c
in
var
.
clients
]
for
var
in
node
.
outputs
]
detailed_err_msg
+=
(
"Inputs shapes:
%
s"
%
shapes
+
detailed_err_msg
+=
(
"Inputs shapes:
%
s"
%
shapes
+
"
\n
Inputs strides:
%
s"
%
strides
+
"
\n
Inputs strides:
%
s"
%
strides
+
"
\n
Inputs values:
%
s
\n
"
%
scalar_values
)
"
\n
Inputs values:
%
s"
%
scalar_values
+
"
\n
Outputs clients:
%
s
\n
"
%
clients
)
else
:
else
:
hints
.
append
(
hints
.
append
(
"HINT: Use another linker then the c linker to"
"HINT: Use another linker then the c linker to"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论