Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
15f6a12c
提交
15f6a12c
authored
3月 22, 2016
作者:
Jakub Sygnowski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
getattr in vm to allow for a new attribute
上级
c4d1145b
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
2 行增加
和
8 行删除
+2
-8
function_module.py
theano/compile/function_module.py
+0
-6
vm.py
theano/gof/vm.py
+2
-2
没有找到文件。
theano/compile/function_module.py
浏览文件 @
15f6a12c
...
@@ -778,9 +778,6 @@ class Function(object):
...
@@ -778,9 +778,6 @@ class Function(object):
output_subset
=
kwargs
.
pop
(
'output_subset'
,
None
)
output_subset
=
kwargs
.
pop
(
'output_subset'
,
None
)
if
output_subset
is
not
None
and
self
.
output_keys
is
not
None
:
if
output_subset
is
not
None
and
self
.
output_keys
is
not
None
:
if
not
all
(
key
in
self
.
output_keys
for
key
in
output_subset
):
raise
KeyError
(
'Output_subset should be a list of keys '
'from output_keys'
)
output_subset
=
\
output_subset
=
\
[
self
.
output_keys
.
index
(
key
)
for
key
in
output_subset
]
[
self
.
output_keys
.
index
(
key
)
for
key
in
output_subset
]
...
@@ -980,9 +977,6 @@ class Function(object):
...
@@ -980,9 +977,6 @@ class Function(object):
if
output_subset
is
None
:
if
output_subset
is
None
:
return
outputs
return
outputs
else
:
else
:
if
not
all
(
isinstance
(
index
,
int
)
for
index
in
output_subset
):
raise
TypeError
(
'Output_subset should be '
'a list of indices of output variables'
)
return
[
outputs
[
i
]
for
i
in
output_subset
]
return
[
outputs
[
i
]
for
i
in
output_subset
]
value
=
property
(
value
=
property
(
...
...
theano/gof/vm.py
浏览文件 @
15f6a12c
...
@@ -821,14 +821,14 @@ class VM_Linker(link.LocalLinker):
...
@@ -821,14 +821,14 @@ class VM_Linker(link.LocalLinker):
if
(
self
.
callback
is
not
None
or
if
(
self
.
callback
is
not
None
or
(
config
.
profile
and
config
.
profile_memory
)
or
(
config
.
profile
and
config
.
profile_memory
)
or
self
.
allow_partial_eval
):
getattr
(
self
,
'allow_partial_eval'
,
False
)
):
if
self
.
use_cloop
and
self
.
callback
is
not
None
:
if
self
.
use_cloop
and
self
.
callback
is
not
None
:
logger
.
warn
(
'CVM does not support callback, using Stack VM.'
)
logger
.
warn
(
'CVM does not support callback, using Stack VM.'
)
if
self
.
use_cloop
and
config
.
profile_memory
:
if
self
.
use_cloop
and
config
.
profile_memory
:
warnings
.
warn
(
warnings
.
warn
(
'CVM does not support memory profile, using Stack VM.'
)
'CVM does not support memory profile, using Stack VM.'
)
if
self
.
use_cloop
and
self
.
allow_partial_eval
:
if
self
.
use_cloop
and
getattr
(
self
,
'allow_partial_eval'
,
False
)
:
warnings
.
warn
(
warnings
.
warn
(
'CVM does not support partial evaluation yet, '
'CVM does not support partial evaluation yet, '
'using Stack VM.'
)
'using Stack VM.'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论