Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6dbc1315
提交
6dbc1315
authored
8月 06, 2012
作者:
Olivier Delalleau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Typo fixes
上级
c5524f2d
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
printing.py
theano/printing.py
+6
-5
test_printing.py
theano/tests/test_printing.py
+3
-3
没有找到文件。
theano/printing.py
浏览文件 @
6dbc1315
...
...
@@ -482,7 +482,8 @@ def pydotprint(fct, outfile=None,
print_output_file
=
True
,
assert_nb_all_strings
=-
1
):
"""print to a file in png format the graph of op of a compile theano fct.
"""
Print to a file (png format) the graph of a compiled theano function's ops.
:param fct: the theano fct returned by theano.function.
:param outfile: the output file where to put the graph.
...
...
@@ -509,10 +510,10 @@ def pydotprint(fct, outfile=None,
:param var_with_name_simple: If true and a variable have a name,
we will print only the variable name.
Otherwise, we concatenate the type to the var name.
:param assert_nb_all_strings: Used for tests.
This assert the
number of uniq string node in the dot graph. This is
used in tests to verify that dot won't merge Theano
node
.
:param assert_nb_all_strings: Used for tests.
If non-negative, assert that
the number of unique string nodes in the dot graph is equal to
this number. This is used in tests to verify that dot won't
merge Theano nodes
.
In the graph, ellipses are Apply Nodes (the execution of an op)
and boxes are variables. If variables have names they are used as
...
...
theano/tests/test_printing.py
浏览文件 @
6dbc1315
...
...
@@ -50,9 +50,9 @@ def test_pydotprint_cond_highlight():
def
test_pydotprint_long_name
():
"""This is a REALLY PARTIAL TEST.
It print
a graph where there is variable and apply node that
there too long name is different, but not the shortened name
.
We should not merge those node in the dot graph.
It print
s a graph where there are variable and apply nodes whose long
names are different, but not the shortened names
.
We should not merge those node
s
in the dot graph.
"""
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论