Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
32885e90
提交
32885e90
authored
6月 14, 2016
作者:
Chinnadhurai Sankar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix indentation
上级
7443cc89
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
14 行删除
+15
-14
cmodule.py
theano/gof/cmodule.py
+4
-4
graph.py
theano/gof/graph.py
+11
-10
没有找到文件。
theano/gof/cmodule.py
浏览文件 @
32885e90
...
@@ -1484,13 +1484,13 @@ def _rmtree(parent, ignore_nocleanup=False, msg='', level=logging.DEBUG,
...
@@ -1484,13 +1484,13 @@ def _rmtree(parent, ignore_nocleanup=False, msg='', level=logging.DEBUG,
Paramters
Paramters
----------
----------
parent
parent
Root node to start deleting from
Root node to start deleting from
ignore_nocleanup
ignore_nocleanup
Delete the tree if flag is TRUE
Delete the tree if flag is TRUE
level
level
Python Logging level. Set to "DEBUG" by default
Python Logging level. Set to "DEBUG" by default
ignore_if_missing
ignore_if_missing
If set to True, just return without any issue if parent is NULL
If set to True, just return without any issue if parent is NULL
"""
"""
if
ignore_if_missing
and
not
os
.
path
.
exists
(
parent
):
if
ignore_if_missing
and
not
os
.
path
.
exists
(
parent
):
return
return
...
...
theano/gof/graph.py
浏览文件 @
32885e90
...
@@ -702,14 +702,14 @@ def inputs(variable_list, blockers=None):
...
@@ -702,14 +702,14 @@ def inputs(variable_list, blockers=None):
def
variables_and_orphans
(
i
,
o
):
def
variables_and_orphans
(
i
,
o
):
"""
"""
Extracts list of variables within input and
Extracts list of variables within input and
output nodes
( via dfs travesal)
and chooses the orphans among them
output nodes
via dfs travesal
and chooses the orphans among them
Parameters
Parameters
-----------
-----------
i : list
i : list
Input
L{Variable}
s.
Input
variable
s.
o : list
o : list
Output
L{Variable}
s.
Output
variable
s.
"""
"""
def
expand
(
r
):
def
expand
(
r
):
...
@@ -724,21 +724,21 @@ def variables_and_orphans(i, o):
...
@@ -724,21 +724,21 @@ def variables_and_orphans(i, o):
def
ops
(
i
,
o
):
def
ops
(
i
,
o
):
"""
"""
WRITEME
Set of Ops contained within the subgraph between i and o
Parameters
Parameters
----------
----------
i : list
i : list
Input
L{Variable}
s.
Input
variable
s.
o : list
o : list
Output
L{Variable}
s.
Output
variable
s.
Returns
Returns
-------
-------
object
object
The set of ops that are contained within the subgraph that lies
The set of ops that are contained within the subgraph that lies
between i and o, including the owners of the
L{Variable}
s in o and
between i and o, including the owners of the
variable
s in o and
intermediary ops between i and o, but not the owners of the
L{Variable}
s
intermediary ops between i and o, but not the owners of the
variable
s
in i.
in i.
"""
"""
...
@@ -753,7 +753,7 @@ def ops(i, o):
...
@@ -753,7 +753,7 @@ def ops(i, o):
def
variables
(
i
,
o
):
def
variables
(
i
,
o
):
"""
"""
Extracts list of variables within input and output nodes
( via dfs t ravesal)
Extracts list of variables within input and output nodes
via dfs travesal
Parameters
Parameters
----------
----------
...
@@ -775,7 +775,8 @@ def variables(i, o):
...
@@ -775,7 +775,8 @@ def variables(i, o):
def
orphans
(
i
,
o
):
def
orphans
(
i
,
o
):
"""
"""
Extracts list of variables within input and output nodes ( via dfs t ravesal) and returns the "orphans" among them
Extracts list of variables within input and output nodes
via dfs travesal and returns the orphans among them
Parameters
Parameters
----------
----------
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论