Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
6caaadde
提交
6caaadde
authored
7月 29, 2015
作者:
Christof Angermueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor changes
上级
d5c089f5
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
290 行增加
和
32 行删除
+290
-32
index.html
doc/d3printing/GSoC/150724_opfrom/index.html
+290
-32
没有找到文件。
doc/d3printing/GSoC/150724_opfrom/index.html
浏览文件 @
6caaadde
...
...
@@ -174,7 +174,7 @@ div#notebook {
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
1
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
8
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"kn"
>
import
</span>
<span
class=
"nn"
>
numpy
</span>
<span
class=
"kn"
>
as
</span>
<span
class=
"nn"
>
np
</span>
...
...
@@ -188,7 +188,7 @@ div#notebook {
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
2
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
9
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"o"
>
%
</span><span
class=
"k"
>
load_ext
</span>
autoreload
...
...
@@ -199,10 +199,25 @@ div#notebook {
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
><div
class=
"prompt"
></div>
<div
class=
"output_subarea output_stream output_stdout output_text"
>
<pre>
The autoreload extension is already loaded. To reload it, use:
%reload_ext autoreload
</pre>
</div>
</div>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
3
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
10
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"kn"
>
import
</span>
<span
class=
"nn"
>
theano
</span>
<span
class=
"kn"
>
as
</span>
<span
class=
"nn"
>
th
</span>
...
...
@@ -215,17 +230,20 @@ div#notebook {
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
><div
class=
"prompt"
></div>
<div
class=
"output_subarea output_stream output_stdout output_text"
>
<pre>
Couldn
'
t import dot_parser, loading of dot files will not be possible.
</pre>
</div>
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[28]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"k"
>
def
</span>
<span
class=
"nf"
>
viz_ofg
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
ofg
</span><span
class=
"p"
>
):
</span>
<span
class=
"n"
>
fo
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
ofg
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
op
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
fn
</span>
<span
class=
"n"
>
gf
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
d3p
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
GraphFormatter
</span><span
class=
"p"
>
()
</span>
<span
class=
"n"
>
g
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
gf
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
to_pydot
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
fo
</span><span
class=
"p"
>
)
</span>
<span
class=
"k"
>
return
</span>
<span
class=
"n"
>
g
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
create_svg
</span><span
class=
"p"
>
()
</span>
</pre></div>
</div>
</div>
</div>
...
...
@@ -241,7 +259,7 @@ div#notebook {
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
4
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
31
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
x
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
y
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
z
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
tht
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
scalars
</span><span
class=
"p"
>
(
</span><span
class=
"s"
>
'
xyz
'
</span><span
class=
"p"
>
)
</span>
...
...
@@ -258,11 +276,10 @@ div#notebook {
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
5
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
12
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
gf
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
d3p
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
GraphFormatter
</span><span
class=
"p"
>
()
</span>
<span
class=
"n"
>
g
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
gf
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
to_pydot
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
f
</span><span
class=
"p"
>
)
</span>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
d3p
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
d3print
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
f
</span><span
class=
"p"
>
,
</span>
<span
class=
"s"
>
'
example1/index.html
'
</span><span
class=
"p"
>
)
</span>
</pre></div>
</div>
...
...
@@ -270,41 +287,106 @@ div#notebook {
</div>
</div>
<div
class=
"cell border-box-sizing
code
_cell rendered"
>
<div
class=
"
inpu
t"
>
<
div
class=
"prompt input_prompt"
>
In
[6]:
<
/div>
<div
class=
"cell border-box-sizing
text
_cell rendered"
>
<div
class=
"
prompt input_promp
t"
>
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
g
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
write_dot
</span><span
class=
"p"
>
(
</span><span
class=
"s"
>
'
dev/opfrom.dot
'
</span><span
class=
"p"
>
);
</span>
</pre></div>
<div
class=
"text_cell_render border-box-sizing rendered_html"
>
<p><a
href=
"./example1/index.html"
>
Open
</a></p>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
</div>
<div
class=
"inner_cell"
>
<div
class=
"text_cell_render border-box-sizing rendered_html"
>
<h2
id=
"OFG-node"
>
OFG node
<a
class=
"anchor-link"
href=
"#OFG-node"
>
¶
</a></h2>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
7
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
33
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
d3p
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
d3print
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
f
</span><span
class=
"p"
>
,
</span>
<span
class=
"s"
>
'
example1/index.html
'
</span><span
class=
"p"
>
)
</span>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
SVG
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
viz_ofg
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
f
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
maker
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
fgraph
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
toposort
</span><span
class=
"p"
>
()[
</span><span
class=
"mi"
>
0
</span><span
class=
"p"
>
])
)
</span>
</pre></div>
</div>
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
><div
class=
"prompt output_prompt"
>
Out[33]:
</div>
<div
class=
"output_svg output_subarea output_execute_result"
>
<svg
height=
"220pt"
viewBox=
"0.00 0.00 722.00 220.00"
width=
"722pt"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<g
class=
"graph"
id=
"graph0"
transform=
"scale(1 1) rotate(0) translate(4 216)"
>
<title>
G
</title>
<polygon
fill=
"white"
points=
"-4,4 -4,-216 718,-216 718,4 -4,4"
stroke=
"none"
/>
<!-- _1 -->
<g
class=
"node"
id=
"node1"
><title>
_1
</title>
<ellipse
cx=
"349"
cy=
"-106"
fill=
"#ffaabb"
rx=
"155.005"
ry=
"18"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"349"
y=
"-102.3"
>
Elemwise{Composite{(i0 + (i1 * i2))}}
</text>
</g>
<!-- _5 -->
<g
class=
"node"
id=
"node5"
><title>
_5
</title>
<polygon
fill=
"dodgerblue"
points=
"435,-36 263,-36 263,-0 435,-0 435,-36"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"349"
y=
"-14.3"
>
TensorType(float64, scalar)
</text>
</g>
<!-- _1->_5 -->
<g
class=
"edge"
id=
"edge4"
><title>
_1-
>
_5
</title>
<path
d=
"M349,-87.5966C349,-75.7459 349,-59.8169 349,-46.2917"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"352.5,-46.084 349,-36.084 345.5,-46.084 352.5,-46.084"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"427"
y=
"-58.3"
>
TensorType(float64, scalar)
</text>
</g>
<!-- _2 -->
<g
class=
"node"
id=
"node2"
><title>
_2
</title>
<polygon
fill=
"limegreen"
points=
"220.25,-212 -0.25,-212 -0.25,-176 220.25,-176 220.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"110"
y=
"-190.3"
>
name=x TensorType(float64, scalar)
</text>
</g>
<!-- _2->_1 -->
<g
class=
"edge"
id=
"edge1"
><title>
_2-
>
_1
</title>
<path
d=
"M128.186,-175.807C141.119,-164.521 159.428,-150.354 178,-142 197.086,-133.415 218.319,-126.915 239.152,-121.999"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"240.022,-125.391 249.01,-119.781 238.486,-118.562 240.022,-125.391"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"261.5"
y=
"-146.3"
>
0 TensorType(float64, scalar)
</text>
</g>
<!-- _3 -->
<g
class=
"node"
id=
"node3"
><title>
_3
</title>
<polygon
fill=
"limegreen"
points=
"459.25,-212 238.75,-212 238.75,-176 459.25,-176 459.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"349"
y=
"-190.3"
>
name=y TensorType(float64, scalar)
</text>
</g>
<!-- _3->_1 -->
<g
class=
"edge"
id=
"edge2"
><title>
_3-
>
_1
</title>
<path
d=
"M349,-175.597C349,-163.746 349,-147.817 349,-134.292"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"352.5,-134.084 349,-124.084 345.5,-134.084 352.5,-134.084"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"432.5"
y=
"-146.3"
>
1 TensorType(float64, scalar)
</text>
</g>
<!-- _4 -->
<g
class=
"node"
id=
"node4"
><title>
_4
</title>
<polygon
fill=
"limegreen"
points=
"698,-212 478,-212 478,-176 698,-176 698,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"588"
y=
"-190.3"
>
name=z TensorType(float64, scalar)
</text>
</g>
<!-- _4->_1 -->
<g
class=
"edge"
id=
"edge3"
><title>
_4-
>
_1
</title>
<path
d=
"M569.814,-175.807C556.881,-164.521 538.572,-150.354 520,-142 500.914,-133.415 479.681,-126.915 458.848,-121.999"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"459.514,-118.562 448.99,-119.781 457.978,-125.391 459.514,-118.562"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"630.5"
y=
"-146.3"
>
2 TensorType(float64, scalar)
</text>
</g>
</g>
</svg>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
</div>
<div
class=
"inner_cell"
>
<div
class=
"text_cell_render border-box-sizing rendered_html"
>
<p><a
href=
"./example1/index.html"
>
Open
</a></p>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
...
...
@@ -317,7 +399,7 @@ div#notebook {
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
8
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
42
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
x
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
y
</span><span
class=
"p"
>
,
</span>
<span
class=
"n"
>
z
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
tht
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
scalars
</span><span
class=
"p"
>
(
</span><span
class=
"s"
>
'
xyz
'
</span><span
class=
"p"
>
)
</span>
...
...
@@ -336,7 +418,7 @@ div#notebook {
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[
9
]:
</div>
<div
class=
"prompt input_prompt"
>
In
[
21
]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
d3p
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
d3print
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
f
</span><span
class=
"p"
>
,
</span>
<span
class=
"s"
>
'
example2/index.html
'
</span><span
class=
"p"
>
)
</span>
...
...
@@ -356,6 +438,182 @@ div#notebook {
</div>
</div>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
</div>
<div
class=
"inner_cell"
>
<div
class=
"text_cell_render border-box-sizing rendered_html"
>
<h2
id=
"OFG-node-1"
>
OFG node 1
<a
class=
"anchor-link"
href=
"#OFG-node-1"
>
¶
</a></h2>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[45]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
ofg1
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
f
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
maker
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
fgraph
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
toposort
</span><span
class=
"p"
>
()[
</span><span
class=
"mi"
>
0
</span><span
class=
"p"
>
]
</span>
<span
class=
"n"
>
SVG
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
viz_ofg
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
ofg1
</span><span
class=
"p"
>
))
</span>
</pre></div>
</div>
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
><div
class=
"prompt output_prompt"
>
Out[45]:
</div>
<div
class=
"output_svg output_subarea output_execute_result"
>
<svg
height=
"259pt"
viewBox=
"0.00 0.00 1219.00 259.00"
width=
"1219pt"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<g
class=
"graph"
id=
"graph0"
transform=
"scale(1 1) rotate(0) translate(4 255)"
>
<title>
G
</title>
<polygon
fill=
"white"
points=
"-4,4 -4,-255 1215,-255 1215,4 -4,4"
stroke=
"none"
/>
<g
class=
"cluster"
id=
"clust1"
><title>
cluster__1
</title>
<polygon
fill=
"none"
points=
"8,-168 8,-243 485,-243 485,-168 8,-168"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"246.5"
y=
"-227.8"
>
theano.compile.builders.OpFromGraph object at 0x1148a8110
</text>
</g>
<!-- _2 -->
<g
class=
"node"
id=
"node1"
><title>
_2
</title>
<polygon
fill=
"limegreen"
points=
"476.25,-212 255.75,-212 255.75,-176 476.25,-176 476.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"366"
y=
"-190.3"
>
name=x TensorType(float64, scalar)
</text>
</g>
<!-- _3 -->
<g
class=
"node"
id=
"node2"
><title>
_3
</title>
<polygon
fill=
"limegreen"
points=
"237.25,-212 16.75,-212 16.75,-176 237.25,-176 237.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"127"
y=
"-190.3"
>
name=y TensorType(float64, scalar)
</text>
</g>
<!-- _1 -->
<g
class=
"node"
id=
"node3"
><title>
_1
</title>
<ellipse
cx=
"734"
cy=
"-194"
fill=
"none"
rx=
"239.268"
ry=
"18"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"734"
y=
"-190.3"
>
theano.compile.builders.OpFromGraph object at 0x1148a8110
</text>
</g>
<!-- _4 -->
<g
class=
"node"
id=
"node4"
><title>
_4
</title>
<ellipse
cx=
"917"
cy=
"-106"
fill=
"#ffaabb"
rx=
"96.2631"
ry=
"18"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"917"
y=
"-102.3"
>
Elemwise{Add}[(0, 0)]
</text>
</g>
<!-- _1->_4 -->
<g
class=
"edge"
id=
"edge1"
><title>
_1-
>
_4
</title>
<path
d=
"M770.155,-176.009C799.89,-162.035 842.117,-142.191 873.662,-127.367"
fill=
"none"
stroke=
"red"
/>
<polygon
fill=
"red"
points=
"875.521,-130.36 883.083,-122.939 872.544,-124.025 875.521,-130.36"
stroke=
"red"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"925.5"
y=
"-146.3"
>
0 TensorType(float64, scalar)
</text>
</g>
<!-- _6 -->
<g
class=
"node"
id=
"node6"
><title>
_6
</title>
<polygon
fill=
"dodgerblue"
points=
"1017.25,-36 816.75,-36 816.75,-0 1017.25,-0 1017.25,-36"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"917"
y=
"-14.3"
>
TensorType(float64, scalar) id=4
</text>
</g>
<!-- _4->_6 -->
<g
class=
"edge"
id=
"edge3"
><title>
_4-
>
_6
</title>
<path
d=
"M917,-87.5966C917,-75.7459 917,-59.8169 917,-46.2917"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"920.5,-46.084 917,-36.084 913.5,-46.084 920.5,-46.084"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"995"
y=
"-58.3"
>
TensorType(float64, scalar)
</text>
</g>
<!-- _5 -->
<g
class=
"node"
id=
"node5"
><title>
_5
</title>
<polygon
fill=
"limegreen"
points=
"1211,-212 991,-212 991,-176 1211,-176 1211,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"1101"
y=
"-190.3"
>
name=z TensorType(float64, scalar)
</text>
</g>
<!-- _5->_4 -->
<g
class=
"edge"
id=
"edge2"
><title>
_5-
>
_4
</title>
<path
d=
"M1074.31,-175.883C1057.2,-165.325 1034.27,-151.949 1013,-142 1000.2,-136.013 986.068,-130.363 972.675,-125.42"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"973.677,-122.061 963.083,-121.951 971.296,-128.644 973.677,-122.061"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"1125.5"
y=
"-146.3"
>
1 TensorType(float64, scalar)
</text>
</g>
</g>
</svg>
</div>
</div>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing text_cell rendered"
>
<div
class=
"prompt input_prompt"
>
</div>
<div
class=
"inner_cell"
>
<div
class=
"text_cell_render border-box-sizing rendered_html"
>
<h2
id=
"OFG-node-2"
>
OFG node 2
<a
class=
"anchor-link"
href=
"#OFG-node-2"
>
¶
</a></h2>
</div>
</div>
</div>
<div
class=
"cell border-box-sizing code_cell rendered"
>
<div
class=
"input"
>
<div
class=
"prompt input_prompt"
>
In
[46]:
</div>
<div
class=
"inner_cell"
>
<div
class=
"input_area"
>
<div
class=
" highlight hl-ipython2"
><pre><span
class=
"n"
>
ofg2
</span>
<span
class=
"o"
>
=
</span>
<span
class=
"n"
>
ofg1
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
op
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
fn
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
maker
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
fgraph
</span><span
class=
"o"
>
.
</span><span
class=
"n"
>
toposort
</span><span
class=
"p"
>
()[
</span><span
class=
"mi"
>
0
</span><span
class=
"p"
>
]
</span>
<span
class=
"n"
>
SVG
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
viz_ofg
</span><span
class=
"p"
>
(
</span><span
class=
"n"
>
ofg2
</span><span
class=
"p"
>
))
</span>
</pre></div>
</div>
</div>
</div>
<div
class=
"output_wrapper"
>
<div
class=
"output"
>
<div
class=
"output_area"
><div
class=
"prompt output_prompt"
>
Out[46]:
</div>
<div
class=
"output_svg output_subarea output_execute_result"
>
<svg
height=
"220pt"
viewBox=
"0.00 0.00 513.00 220.00"
width=
"513pt"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
>
<g
class=
"graph"
id=
"graph0"
transform=
"scale(1 1) rotate(0) translate(4 216)"
>
<title>
G
</title>
<polygon
fill=
"white"
points=
"-4,4 -4,-216 509,-216 509,4 -4,4"
stroke=
"none"
/>
<!-- _1 -->
<g
class=
"node"
id=
"node1"
><title>
_1
</title>
<ellipse
cx=
"229"
cy=
"-106"
fill=
"#ffaabb"
rx=
"111.186"
ry=
"18"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"229"
y=
"-102.3"
>
Elemwise{mul,no_inplace}
</text>
</g>
<!-- _4 -->
<g
class=
"node"
id=
"node4"
><title>
_4
</title>
<polygon
fill=
"dodgerblue"
points=
"315,-36 143,-36 143,-0 315,-0 315,-36"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"229"
y=
"-14.3"
>
TensorType(float64, scalar)
</text>
</g>
<!-- _1->_4 -->
<g
class=
"edge"
id=
"edge3"
><title>
_1-
>
_4
</title>
<path
d=
"M229,-87.5966C229,-75.7459 229,-59.8169 229,-46.2917"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"232.5,-46.084 229,-36.084 225.5,-46.084 232.5,-46.084"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"307"
y=
"-58.3"
>
TensorType(float64, scalar)
</text>
</g>
<!-- _2 -->
<g
class=
"node"
id=
"node2"
><title>
_2
</title>
<polygon
fill=
"limegreen"
points=
"220.25,-212 -0.25,-212 -0.25,-176 220.25,-176 220.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"110"
y=
"-190.3"
>
name=x TensorType(float64, scalar)
</text>
</g>
<!-- _2->_1 -->
<g
class=
"edge"
id=
"edge1"
><title>
_2-
>
_1
</title>
<path
d=
"M124.112,-175.983C133.526,-165.334 146.597,-151.821 160,-142 167.085,-136.809 175.052,-131.986 182.989,-127.682"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"184.633,-130.772 191.889,-123.051 181.402,-124.562 184.633,-130.772"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"243.5"
y=
"-146.3"
>
0 TensorType(float64, scalar)
</text>
</g>
<!-- _3 -->
<g
class=
"node"
id=
"node3"
><title>
_3
</title>
<polygon
fill=
"limegreen"
points=
"459.25,-212 238.75,-212 238.75,-176 459.25,-176 459.25,-212"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"349"
y=
"-190.3"
>
name=y TensorType(float64, scalar)
</text>
</g>
<!-- _3->_1 -->
<g
class=
"edge"
id=
"edge2"
><title>
_3-
>
_1
</title>
<path
d=
"M345.336,-175.801C342.177,-164.804 336.566,-150.971 327,-142 319.637,-135.095 310.819,-129.537 301.533,-125.066"
fill=
"none"
stroke=
"black"
/>
<polygon
fill=
"black"
points=
"302.691,-121.753 292.126,-120.949 299.884,-128.165 302.691,-121.753"
stroke=
"black"
/>
<text
font-family=
"Times,serif"
font-size=
"14.00"
text-anchor=
"middle"
x=
"421.5"
y=
"-146.3"
>
1 TensorType(float64, scalar)
</text>
</g>
</g>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论