Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
f7ed4da5
提交
f7ed4da5
authored
9月 30, 2014
作者:
Li
提交者:
Frederic
10月 21, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed CamelCase for class names
上级
d5cf7da5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
toolbox.py
theano/gof/toolbox.py
+5
-5
没有找到文件。
theano/gof/toolbox.py
浏览文件 @
f7ed4da5
...
@@ -104,7 +104,7 @@ class Bookkeeper(Feature):
...
@@ -104,7 +104,7 @@ class Bookkeeper(Feature):
self
.
on_prune
(
fgraph
,
node
,
'Bookkeeper.detach'
)
self
.
on_prune
(
fgraph
,
node
,
'Bookkeeper.detach'
)
class
g
etCheckpoint
:
class
G
etCheckpoint
:
def
__init__
(
self
,
history
,
fgraph
):
def
__init__
(
self
,
history
,
fgraph
):
self
.
h
=
history
self
.
h
=
history
...
@@ -114,7 +114,7 @@ class getCheckpoint:
...
@@ -114,7 +114,7 @@ class getCheckpoint:
return
len
(
self
.
h
.
history
[
self
.
fgraph
])
return
len
(
self
.
h
.
history
[
self
.
fgraph
])
class
lambde
xtract
:
class
LambdE
xtract
:
def
__init__
(
self
,
fgraph
,
node
,
i
,
r
,
reason
=
None
):
def
__init__
(
self
,
fgraph
,
node
,
i
,
r
,
reason
=
None
):
self
.
fgraph
=
fgraph
self
.
fgraph
=
fgraph
...
@@ -142,11 +142,11 @@ class History(Feature):
...
@@ -142,11 +142,11 @@ class History(Feature):
# Don't call unpickle here, as ReplaceValidate.on_attach()
# Don't call unpickle here, as ReplaceValidate.on_attach()
# call to History.on_attach() will call the
# call to History.on_attach() will call the
# ReplaceValidate.unpickle and not History.unpickle
# ReplaceValidate.unpickle and not History.unpickle
fgraph
.
checkpoint
=
g
etCheckpoint
(
self
,
fgraph
)
fgraph
.
checkpoint
=
G
etCheckpoint
(
self
,
fgraph
)
fgraph
.
revert
=
partial
(
self
.
revert
,
fgraph
)
fgraph
.
revert
=
partial
(
self
.
revert
,
fgraph
)
def
unpickle
(
self
,
fgraph
):
def
unpickle
(
self
,
fgraph
):
fgraph
.
checkpoint
=
g
etCheckpoint
(
self
,
fgraph
)
fgraph
.
checkpoint
=
G
etCheckpoint
(
self
,
fgraph
)
fgraph
.
revert
=
partial
(
self
.
revert
,
fgraph
)
fgraph
.
revert
=
partial
(
self
.
revert
,
fgraph
)
def
on_detach
(
self
,
fgraph
):
def
on_detach
(
self
,
fgraph
):
...
@@ -158,7 +158,7 @@ class History(Feature):
...
@@ -158,7 +158,7 @@ class History(Feature):
if
self
.
history
[
fgraph
]
is
None
:
if
self
.
history
[
fgraph
]
is
None
:
return
return
h
=
self
.
history
[
fgraph
]
h
=
self
.
history
[
fgraph
]
h
.
append
(
lambde
xtract
(
fgraph
,
node
,
i
,
r
,
reason
))
h
.
append
(
LambdE
xtract
(
fgraph
,
node
,
i
,
r
,
reason
))
def
revert
(
self
,
fgraph
,
checkpoint
):
def
revert
(
self
,
fgraph
,
checkpoint
):
"""
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论