Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
3bbde8a6
提交
3bbde8a6
authored
3月 13, 2015
作者:
Frédéric Bastien
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2569 from abergeron/fix_generic_debugmode
Fix problems in the buildbot
上级
4b27770c
248c5921
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
10 行增加
和
4 行删除
+10
-4
debugmode.py
theano/compile/debugmode.py
+7
-4
scan_op.py
theano/scan_module/scan_op.py
+3
-0
没有找到文件。
theano/compile/debugmode.py
浏览文件 @
3bbde8a6
...
...
@@ -744,7 +744,8 @@ def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes,
var
=
node
.
outputs
[
oo
]
out_var
=
storage_map
[
var
][
0
]
in_var
=
storage_map
[
node
.
inputs
[
ii
[
0
]]][
0
]
if
var
.
type
.
may_share_memory
(
out_var
,
in_var
):
if
(
hasattr
(
var
.
type
,
'may_share_memory'
)
and
var
.
type
.
may_share_memory
(
out_var
,
in_var
)):
actually_inplace_outputs
.
append
(
node
.
outputs
[
oo
])
if
warn_input_not_reused
and
destroyed_res_list
:
...
...
@@ -762,7 +763,8 @@ def _check_inputs(node, storage_map, r_vals, dr_vals, active_nodes,
var
=
node
.
outputs
[
oo
]
out_var
=
storage_map
[
var
][
0
]
in_var
=
storage_map
[
node
.
inputs
[
ii
[
0
]]][
0
]
may_share
=
var
.
type
.
may_share_memory
(
out_var
,
in_var
)
may_share
=
(
hasattr
(
var
.
type
,
'may_share_memory'
)
and
var
.
type
.
may_share_memory
(
out_var
,
in_var
))
if
may_share
:
actually_inplace_outputs
.
append
(
node
.
outputs
[
oo
])
...
...
@@ -831,8 +833,8 @@ def _check_viewmap(node, storage_map):
# original value, we we wouldn't be able to do this
# useless check.
continue
if
hasattr
(
inode
.
type
,
'may_share_memory'
)
and
\
inode
.
type
.
may_share_memory
(
outstorage
,
in_storage
):
if
(
hasattr
(
inode
.
type
,
'may_share_memory'
)
and
inode
.
type
.
may_share_memory
(
outstorage
,
in_storage
)
):
nodeid
=
id
(
inode
)
bad_alias
[
nodeid
]
=
ii
...
...
@@ -861,6 +863,7 @@ def _check_viewmap(node, storage_map):
# check to see if we share memory with this other output
# this is not a problem if the node is not actually used
if
(
_is_used_in_graph
(
other_onode
)
and
hasattr
(
other_onode
.
type
,
'may_share_memory'
)
and
other_onode
.
type
.
may_share_memory
(
outstorage
,
other_storage
)):
raise
BadViewMap
(
node
,
oi
,
outstorage
,
...
...
theano/scan_module/scan_op.py
浏览文件 @
3bbde8a6
...
...
@@ -159,6 +159,9 @@ class Scan(PureOp):
if
"allow_gc"
not
in
self
.
__dict__
:
self
.
allow_gc
=
True
self
.
info
[
'allow_gc'
]
=
True
if
not
hasattr
(
self
,
'gpua'
):
self
.
gpua
=
False
self
.
info
[
'gpua'
]
=
False
def
make_node
(
self
,
*
inputs
):
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论