Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
d5c089f5
提交
d5c089f5
authored
7月 29, 2015
作者:
Christof Angermueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix lost edge highlight feature
上级
39adc822
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
104 行增加
和
99 行删除
+104
-99
d3theano.js
doc/d3printing/GSoC/150724_opfrom/dev/d3theano.js
+12
-11
dev.ipynb
doc/d3printing/GSoC/150724_opfrom/dev/dev.ipynb
+0
-0
opfrom.dot
doc/d3printing/GSoC/150724_opfrom/dev/opfrom.dot
+26
-26
d3theano.js
doc/d3printing/GSoC/150724_opfrom/example1/d3theano.js
+12
-11
index.dot
doc/d3printing/GSoC/150724_opfrom/example1/index.dot
+8
-8
d3theano.js
doc/d3printing/GSoC/150724_opfrom/example2/d3theano.js
+12
-11
index.dot
doc/d3printing/GSoC/150724_opfrom/example2/index.dot
+17
-17
index.ipynb
doc/d3printing/GSoC/150724_opfrom/index.ipynb
+0
-0
formatting.py
theano/d3printing/formatting.py
+5
-4
d3theano.js
theano/d3printing/javascript/d3theano.js
+12
-11
没有找到文件。
doc/d3printing/GSoC/150724_opfrom/dev/d3theano.js
浏览文件 @
d5c089f5
...
@@ -301,10 +301,7 @@ function setupGraph() {
...
@@ -301,10 +301,7 @@ function setupGraph() {
});
});
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
if
(
!
isProfiled
||
isEditNode
||
typeof
(
node
.
value
.
profile
)
==
'undefined'
)
{
// Highlight incoming edges
return
;
}
edges
.
each
(
function
(
d
,
i
)
{
edges
.
each
(
function
(
d
,
i
)
{
var
edge
=
d3
.
select
(
this
);
var
edge
=
d3
.
select
(
this
);
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
...
@@ -313,13 +310,17 @@ function setupGraph() {
...
@@ -313,13 +310,17 @@ function setupGraph() {
.
style
(
'opacity'
,
1.0
);
.
style
(
'opacity'
,
1.0
);
}
}
});
});
nodeDiv
.
transition
()
.
duration
(
200
)
// Show node details if node is not edited as has profiling information
.
style
(
'opacity'
,
.
9
);
if
(
!
isEditNode
&&
node
.
value
.
profile
.
length
)
{
nodeDiv
nodeDiv
.
transition
()
.
html
(
nodeDetails
(
node
))
.
duration
(
200
)
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'opacity'
,
.
9
);
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
nodeDiv
.
html
(
nodeDetails
(
node
))
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
}
});
});
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
...
...
doc/d3printing/GSoC/150724_opfrom/dev/dev.ipynb
0 → 100644
浏览文件 @
d5c089f5
差异被折叠。
点击展开。
doc/d3printing/GSoC/150724_opfrom/dev/opfrom.dot
浏览文件 @
d5c089f5
digraph
G
{
digraph
G
{
graph
[
bb
=
"0,0,24
82
,251"
]
;
graph
[
bb
=
"0,0,24
78
,251"
]
;
node
[
label
=
"\N"
]
;
node
[
label
=
"\N"
]
;
subgraph
cluster__1
{
subgraph
cluster__1
{
graph
[
bb
=
"8,168,723,243"
,
graph
[
bb
=
"8,168,723,243"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
141d3a5
0"
,
lheight
=
0.21
,
lheight
=
0.21
,
lp
=
"365.5,231.5"
,
lp
=
"365.5,231.5"
,
lwidth
=
4.
90
lwidth
=
4.
89
]
;
]
;
_
2
[
fillcolor
=
limegreen
,
_
2
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
...
@@ -31,67 +31,67 @@ digraph G {
...
@@ -31,67 +31,67 @@ digraph G {
width
=
3.0625
]
;
width
=
3.0625
]
;
}
}
subgraph
cluster__5
{
subgraph
cluster__5
{
graph
[
bb
=
"175
9,168,2474
,243"
,
graph
[
bb
=
"175
5,168,2470
,243"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0 id=1"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
141d3a5
0 id=1"
,
lheight
=
0.21
,
lheight
=
0.21
,
lp
=
"211
6
.5,231.5"
,
lp
=
"211
2
.5,231.5"
,
lwidth
=
5.
31
lwidth
=
5.
29
]
;
]
;
_
6
[
fillcolor
=
limegreen
,
_
6
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
label
=
"name=x TensorType(float64, scalar)"
,
label
=
"name=x TensorType(float64, scalar)"
,
pos
=
"235
5
,194"
,
pos
=
"235
1
,194"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
3.0625
]
;
width
=
3.0625
]
;
_
7
[
fillcolor
=
limegreen
,
_
7
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
label
=
"name=y TensorType(float64, scalar)"
,
label
=
"name=y TensorType(float64, scalar)"
,
pos
=
"211
6
,194"
,
pos
=
"211
2
,194"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
3.0625
]
;
width
=
3.0625
]
;
_
8
[
fillcolor
=
limegreen
,
_
8
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
label
=
"name=z TensorType(float64, scalar)"
,
label
=
"name=z TensorType(float64, scalar)"
,
pos
=
"187
7
,194"
,
pos
=
"187
3
,194"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
3.0556
]
;
width
=
3.0556
]
;
}
}
_
1
[
height
=
0.5
,
_
1
[
height
=
0.5
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
141d3a5
0"
,
pos
=
"97
3
,194"
,
pos
=
"97
2
,194"
,
shape
=
ellipse
,
shape
=
ellipse
,
width
=
6.6
50
4
]
;
width
=
6.6
41
4
]
;
_
9
[
fillcolor
=
"#FFAABB"
,
_
9
[
fillcolor
=
"#FFAABB"
,
height
=
0.5
,
height
=
0.5
,
label
=
"Elemwise{Add}[(0, 0)]"
,
label
=
"Elemwise{Add}[(0, 0)]"
,
pos
=
"12
31
,106"
,
pos
=
"12
29
,106"
,
shape
=
ellipse
,
shape
=
ellipse
,
style
=
filled
,
style
=
filled
,
type
=
colored
,
type
=
colored
,
width
=
2.6784
]
;
width
=
2.6784
]
;
_
1
->
_
9
[
label
=
"TensorType(float64, scalar)"
,
_
1
->
_
9
[
label
=
"
1
TensorType(float64, scalar)"
,
lp
=
"120
4
,150"
,
lp
=
"120
7.5
,150"
,
pos
=
"e,118
5.8,122.05 1023.1,176.32 1067,161.66 1130.8,140.38 1176.2
,125.28"
]
;
pos
=
"e,118
4,122.05 1021.9,176.32 1065.6,161.66 1129.2,140.38 1174.4
,125.28"
]
;
_
5
[
height
=
0.5
,
_
5
[
height
=
0.5
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0 id=1"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
141d3a5
0 id=1"
,
pos
=
"14
90
,194"
,
pos
=
"14
87
,194"
,
shape
=
ellipse
,
shape
=
ellipse
,
width
=
7.1
761
]
;
width
=
7.1
67
]
;
_
5
->
_
9
[
color
=
red
,
_
5
->
_
9
[
color
=
red
,
label
=
"TensorType(float64, scalar)"
,
label
=
"
0
TensorType(float64, scalar)"
,
lp
=
"146
1
,150"
,
lp
=
"146
4.5
,150"
,
pos
=
"e,127
6.3,122.05 1439.8,176.32 1395.6,161.66 1331.5,140.38 1286
,125.28"
]
;
pos
=
"e,127
4.2,122.05 1436.9,176.32 1393,161.66 1329.2,140.38 1283.8
,125.28"
]
;
_
10
[
fillcolor
=
dodgerblue
,
_
10
[
fillcolor
=
dodgerblue
,
height
=
0.5
,
height
=
0.5
,
label
=
"TensorType(float64, scalar) id=5"
,
label
=
"TensorType(float64, scalar) id=5"
,
pos
=
"12
31
,18"
,
pos
=
"12
29
,18"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
2.7847
]
;
width
=
2.7847
]
;
_
9
->
_
10
[
label
=
"TensorType(float64, scalar)"
,
_
9
->
_
10
[
label
=
"TensorType(float64, scalar)"
,
lp
=
"130
9
,62"
,
lp
=
"130
7
,62"
,
pos
=
"e,12
31,36.084 1231,87.597 1231,75.746 1231,59.817 1231
,46.292"
]
;
pos
=
"e,12
29,36.084 1229,87.597 1229,75.746 1229,59.817 1229
,46.292"
]
;
}
}
doc/d3printing/GSoC/150724_opfrom/example1/d3theano.js
浏览文件 @
d5c089f5
...
@@ -301,10 +301,7 @@ function setupGraph() {
...
@@ -301,10 +301,7 @@ function setupGraph() {
});
});
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
if
(
!
isProfiled
||
isEditNode
||
typeof
(
node
.
value
.
profile
)
==
'undefined'
)
{
// Highlight incoming edges
return
;
}
edges
.
each
(
function
(
d
,
i
)
{
edges
.
each
(
function
(
d
,
i
)
{
var
edge
=
d3
.
select
(
this
);
var
edge
=
d3
.
select
(
this
);
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
...
@@ -313,13 +310,17 @@ function setupGraph() {
...
@@ -313,13 +310,17 @@ function setupGraph() {
.
style
(
'opacity'
,
1.0
);
.
style
(
'opacity'
,
1.0
);
}
}
});
});
nodeDiv
.
transition
()
.
duration
(
200
)
// Show node details if node is not edited as has profiling information
.
style
(
'opacity'
,
.
9
);
if
(
!
isEditNode
&&
node
.
value
.
profile
.
length
)
{
nodeDiv
nodeDiv
.
transition
()
.
html
(
nodeDetails
(
node
))
.
duration
(
200
)
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'opacity'
,
.
9
);
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
nodeDiv
.
html
(
nodeDetails
(
node
))
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
}
});
});
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
...
...
doc/d3printing/GSoC/150724_opfrom/example1/index.dot
浏览文件 @
d5c089f5
...
@@ -3,7 +3,7 @@ digraph G {
...
@@ -3,7 +3,7 @@ digraph G {
node
[
label
=
"\N"
]
;
node
[
label
=
"\N"
]
;
subgraph
cluster__1
{
subgraph
cluster__1
{
graph
[
bb
=
"8,168,723,243"
,
graph
[
bb
=
"8,168,723,243"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
14552bd
0"
,
lheight
=
0.21
,
lheight
=
0.21
,
lp
=
"365.5,231.5"
,
lp
=
"365.5,231.5"
,
lwidth
=
4.90
lwidth
=
4.90
...
@@ -32,7 +32,7 @@ digraph G {
...
@@ -32,7 +32,7 @@ digraph G {
}
}
subgraph
cluster__5
{
subgraph
cluster__5
{
graph
[
bb
=
"1759,168,2474,243"
,
graph
[
bb
=
"1759,168,2474,243"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0 id=1"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
14552bd
0 id=1"
,
lheight
=
0.21
,
lheight
=
0.21
,
lp
=
"2116.5,231.5"
,
lp
=
"2116.5,231.5"
,
lwidth
=
5.31
lwidth
=
5.31
...
@@ -60,7 +60,7 @@ digraph G {
...
@@ -60,7 +60,7 @@ digraph G {
width
=
3.0556
]
;
width
=
3.0556
]
;
}
}
_
1
[
height
=
0.5
,
_
1
[
height
=
0.5
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
14552bd
0"
,
pos
=
"973,194"
,
pos
=
"973,194"
,
shape
=
ellipse
,
shape
=
ellipse
,
width
=
6.6504
]
;
width
=
6.6504
]
;
...
@@ -72,17 +72,17 @@ digraph G {
...
@@ -72,17 +72,17 @@ digraph G {
style
=
filled
,
style
=
filled
,
type
=
colored
,
type
=
colored
,
width
=
2.6784
]
;
width
=
2.6784
]
;
_
1
->
_
9
[
label
=
"TensorType(float64, scalar)"
,
_
1
->
_
9
[
label
=
"
1
TensorType(float64, scalar)"
,
lp
=
"120
4
,150"
,
lp
=
"120
9.5
,150"
,
pos
=
"e,1185.8,122.05 1023.1,176.32 1067,161.66 1130.8,140.38 1176.2,125.28"
]
;
pos
=
"e,1185.8,122.05 1023.1,176.32 1067,161.66 1130.8,140.38 1176.2,125.28"
]
;
_
5
[
height
=
0.5
,
_
5
[
height
=
0.5
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
076d919
0 id=1"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
14552bd
0 id=1"
,
pos
=
"1490,194"
,
pos
=
"1490,194"
,
shape
=
ellipse
,
shape
=
ellipse
,
width
=
7.1761
]
;
width
=
7.1761
]
;
_
5
->
_
9
[
color
=
red
,
_
5
->
_
9
[
color
=
red
,
label
=
"TensorType(float64, scalar)"
,
label
=
"
0
TensorType(float64, scalar)"
,
lp
=
"146
1
,150"
,
lp
=
"146
6.5
,150"
,
pos
=
"e,1276.3,122.05 1439.8,176.32 1395.6,161.66 1331.5,140.38 1286,125.28"
]
;
pos
=
"e,1276.3,122.05 1439.8,176.32 1395.6,161.66 1331.5,140.38 1286,125.28"
]
;
_
10
[
fillcolor
=
dodgerblue
,
_
10
[
fillcolor
=
dodgerblue
,
height
=
0.5
,
height
=
0.5
,
...
...
doc/d3printing/GSoC/150724_opfrom/example2/d3theano.js
浏览文件 @
d5c089f5
...
@@ -301,10 +301,7 @@ function setupGraph() {
...
@@ -301,10 +301,7 @@ function setupGraph() {
});
});
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
if
(
!
isProfiled
||
isEditNode
||
typeof
(
node
.
value
.
profile
)
==
'undefined'
)
{
// Highlight incoming edges
return
;
}
edges
.
each
(
function
(
d
,
i
)
{
edges
.
each
(
function
(
d
,
i
)
{
var
edge
=
d3
.
select
(
this
);
var
edge
=
d3
.
select
(
this
);
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
...
@@ -313,13 +310,17 @@ function setupGraph() {
...
@@ -313,13 +310,17 @@ function setupGraph() {
.
style
(
'opacity'
,
1.0
);
.
style
(
'opacity'
,
1.0
);
}
}
});
});
nodeDiv
.
transition
()
.
duration
(
200
)
// Show node details if node is not edited as has profiling information
.
style
(
'opacity'
,
.
9
);
if
(
!
isEditNode
&&
node
.
value
.
profile
.
length
)
{
nodeDiv
nodeDiv
.
transition
()
.
html
(
nodeDetails
(
node
))
.
duration
(
200
)
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'opacity'
,
.
9
);
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
nodeDiv
.
html
(
nodeDetails
(
node
))
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
}
});
});
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
...
...
doc/d3printing/GSoC/150724_opfrom/example2/index.dot
浏览文件 @
d5c089f5
digraph
G
{
digraph
G
{
graph
[
bb
=
"0,0,14
48
,251"
]
;
graph
[
bb
=
"0,0,14
50
,251"
]
;
node
[
label
=
"\N"
]
;
node
[
label
=
"\N"
]
;
subgraph
cluster__1
{
subgraph
cluster__1
{
graph
[
bb
=
"8,168,723,243"
,
graph
[
bb
=
"8,168,723,243"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
07b5ca1
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
1464845
0"
,
lheight
=
0.21
,
lheight
=
0.21
,
lp
=
"365.5,231.5"
,
lp
=
"365.5,231.5"
,
lwidth
=
4.
88
lwidth
=
4.
90
]
;
]
;
_
2
[
fillcolor
=
limegreen
,
_
2
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
...
@@ -31,40 +31,40 @@ digraph G {
...
@@ -31,40 +31,40 @@ digraph G {
width
=
3.0556
]
;
width
=
3.0556
]
;
}
}
_
1
[
height
=
0.5
,
_
1
[
height
=
0.5
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
07b5ca1
0"
,
label
=
"theano.compile.builders.OpFromGraph object at 0x1
1464845
0"
,
pos
=
"97
1
,194"
,
pos
=
"97
2
,194"
,
shape
=
ellipse
,
shape
=
ellipse
,
width
=
6.6
185
]
;
width
=
6.6
504
]
;
_
5
[
fillcolor
=
"#FFAABB"
,
_
5
[
fillcolor
=
"#FFAABB"
,
height
=
0.5
,
height
=
0.5
,
label
=
"Elemwise{Add}[(0, 0)]"
,
label
=
"Elemwise{Add}[(0, 0)]"
,
pos
=
"115
4
,106"
,
pos
=
"115
6
,106"
,
shape
=
ellipse
,
shape
=
ellipse
,
style
=
filled
,
style
=
filled
,
type
=
colored
,
type
=
colored
,
width
=
2.6784
]
;
width
=
2.6784
]
;
_
1
->
_
5
[
color
=
red
,
_
1
->
_
5
[
color
=
red
,
label
=
"TensorType(float64, scalar)"
,
label
=
"
0
TensorType(float64, scalar)"
,
lp
=
"11
57
,150"
,
lp
=
"11
64.5
,150"
,
pos
=
"e,112
0.1,122.94 1007.2,176.01 1036.9,162.04 1079.1,142.19 1110.7,127.37
"
]
;
pos
=
"e,112
1.9,122.94 1008.4,176.01 1038.4,161.97 1081.1,142.02 1112.8,127.18
"
]
;
_
7
[
fillcolor
=
dodgerblue
,
_
7
[
fillcolor
=
dodgerblue
,
height
=
0.5
,
height
=
0.5
,
label
=
"TensorType(float64, scalar) id=4"
,
label
=
"TensorType(float64, scalar) id=4"
,
pos
=
"115
4
,18"
,
pos
=
"115
6
,18"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
2.7847
]
;
width
=
2.7847
]
;
_
5
->
_
7
[
label
=
"TensorType(float64, scalar)"
,
_
5
->
_
7
[
label
=
"TensorType(float64, scalar)"
,
lp
=
"123
2
,62"
,
lp
=
"123
4
,62"
,
pos
=
"e,115
4,36.084 1154,87.597 1154,75.746 1154,59.817 1154
,46.292"
]
;
pos
=
"e,115
6,36.084 1156,87.597 1156,75.746 1156,59.817 1156
,46.292"
]
;
_
6
[
fillcolor
=
limegreen
,
_
6
[
fillcolor
=
limegreen
,
height
=
0.5
,
height
=
0.5
,
label
=
"name=z TensorType(float64, scalar)"
,
label
=
"name=z TensorType(float64, scalar)"
,
pos
=
"13
38
,194"
,
pos
=
"13
40
,194"
,
shape
=
box
,
shape
=
box
,
style
=
filled
,
style
=
filled
,
width
=
3.0556
]
;
width
=
3.0556
]
;
_
6
->
_
5
[
label
=
"TensorType(float64, scalar)"
,
_
6
->
_
5
[
label
=
"
1
TensorType(float64, scalar)"
,
lp
=
"13
47
,150"
,
lp
=
"13
64.5
,150"
,
pos
=
"e,1
193.7,122.51 1306.2,175.76 1287,165.54 1261.8,152.55 1239,142 1227.5,136.66 1214.9,131.25 1203,126.34
"
]
;
pos
=
"e,1
202.1,121.95 1313.3,175.88 1296.2,165.33 1273.3,151.95 1252,142 1239.2,136.01 1225.1,130.36 1211.7,125.42
"
]
;
}
}
doc/d3printing/GSoC/150724_opfrom/index.ipynb
浏览文件 @
d5c089f5
差异被折叠。
点击展开。
theano/d3printing/formatting.py
浏览文件 @
d5c089f5
...
@@ -155,12 +155,13 @@ class GraphFormatter(object):
...
@@ -155,12 +155,13 @@ class GraphFormatter(object):
param
[
'color'
]
=
'red'
param
[
'color'
]
=
'red'
edge_label
=
str
(
var
.
type
)
edge_label
=
str
(
var
.
type
)
if
len
(
node
.
inputs
)
>
1
:
edge_label
=
str
(
id
)
+
' '
+
edge_label
if
var
.
owner
is
None
:
if
var
.
owner
is
None
:
id_
=
self
.
var_name
(
var
)
id_
=
self
.
var_name
(
var
)
n
=
make_node
(
id_
,
n
=
make_node
(
id_
,
style
=
'filled'
,
style
=
'filled'
,
fillcolor
=
self
.
node_colors
[
'input'
],
fillcolor
=
self
.
node_colors
[
'input'
],
shape
=
var_shape
,
profile
=
aprof
)
shape
=
var_shape
,
profile
=
aprof
)
parent
.
add_node
(
n
)
parent
.
add_node
(
n
)
if
not
is_opfrom
:
if
not
is_opfrom
:
g
.
add_edge
(
pd
.
Edge
(
n
.
get_name
(),
aid
,
label
=
edge_label
,
**
param
))
g
.
add_edge
(
pd
.
Edge
(
n
.
get_name
(),
aid
,
label
=
edge_label
,
**
param
))
...
...
theano/d3printing/javascript/d3theano.js
浏览文件 @
d5c089f5
...
@@ -301,10 +301,7 @@ function setupGraph() {
...
@@ -301,10 +301,7 @@ function setupGraph() {
});
});
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
nodes
.
on
(
'mouseover'
,
function
(
node
)
{
if
(
!
isProfiled
||
isEditNode
||
typeof
(
node
.
value
.
profile
)
==
'undefined'
)
{
// Highlight incoming edges
return
;
}
edges
.
each
(
function
(
d
,
i
)
{
edges
.
each
(
function
(
d
,
i
)
{
var
edge
=
d3
.
select
(
this
);
var
edge
=
d3
.
select
(
this
);
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
if
(
d
.
source
==
node
||
d
.
target
==
node
)
{
...
@@ -313,13 +310,17 @@ function setupGraph() {
...
@@ -313,13 +310,17 @@ function setupGraph() {
.
style
(
'opacity'
,
1.0
);
.
style
(
'opacity'
,
1.0
);
}
}
});
});
nodeDiv
.
transition
()
.
duration
(
200
)
// Show node details if node is not edited as has profiling information
.
style
(
'opacity'
,
.
9
);
if
(
!
isEditNode
&&
node
.
value
.
profile
.
length
)
{
nodeDiv
nodeDiv
.
transition
()
.
html
(
nodeDetails
(
node
))
.
duration
(
200
)
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'opacity'
,
.
9
);
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
nodeDiv
.
html
(
nodeDetails
(
node
))
.
style
(
'left'
,
(
d3
.
event
.
pageX
)
+
30
+
'px'
)
.
style
(
'top'
,
(
d3
.
event
.
pageY
-
28
)
+
'px'
);
}
});
});
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
nodes
.
on
(
'mouseout'
,
function
(
node
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论