Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
ad779f4e
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ad779f4e
编写于
8月 21, 2020
作者:
O
ougongchang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
set the parameter output data type
上级
1491de23
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
27 deletion
+16
-27
mindinsight/datavisual/data_transform/graph/graph.py
mindinsight/datavisual/data_transform/graph/graph.py
+10
-0
mindinsight/datavisual/data_transform/graph/msgraph.py
mindinsight/datavisual/data_transform/graph/msgraph.py
+2
-23
tests/st/func/datavisual/graph/graph_results/test_query_nodes_success_result3.json
...graph/graph_results/test_query_nodes_success_result3.json
+1
-1
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results2.json
...aph_results/test_get_nodes_success_expected_results2.json
+1
-1
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results3.json
...aph_results/test_get_nodes_success_expected_results3.json
+1
-1
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results4.json
...aph_results/test_get_nodes_success_expected_results4.json
+1
-1
未找到文件。
mindinsight/datavisual/data_transform/graph/graph.py
浏览文件 @
ad779f4e
...
...
@@ -15,6 +15,8 @@
"""
This file is used to define the basic graph.
"""
import
time
from
enum
import
Enum
from
collections
import
defaultdict
...
...
@@ -52,6 +54,8 @@ class Graph:
def
build_graph
(
self
,
proto_data
):
"""This method is used to build the graph."""
logger
.
info
(
"Start to build graph"
)
start_time
=
time
.
time
()
# Notice:
# The following methods are interdependent and cannot be switched at will.
...
...
@@ -65,6 +69,12 @@ class Graph:
self
.
_add_variable_nodes
(
NodeTypeEnum
.
CONST
.
value
)
self
.
_calc_subnode_count
()
precision
=
6
time_consuming
=
round
(
time
.
time
()
-
start_time
,
precision
)
logger
.
info
(
"Build graph end, all node count: %s, const count: %s, parameter count: %s, time-consuming: %s s."
,
self
.
normal_node_count
,
len
(
self
.
_const_node_temp_cache
),
len
(
self
.
_parameter_node_temp_cache
),
time_consuming
)
def
exist_node
(
self
,
name
):
"""
Check node exist in graph.
...
...
mindinsight/datavisual/data_transform/graph/msgraph.py
浏览文件 @
ad779f4e
...
...
@@ -13,8 +13,6 @@
# limitations under the License.
# ============================================================================
"""This file is used to define the MindSpore graph."""
import
time
from
mindinsight.datavisual.common.log
import
logger
from
mindinsight.datavisual.proto_files.mindinsight_anf_ir_pb2
import
DataType
from
mindinsight.datavisual.common.enums
import
PluginNameEnum
...
...
@@ -27,24 +25,6 @@ from .graph import EdgeTypeEnum
class
MSGraph
(
Graph
):
"""The object describes the MindSpore graph, and it is defined in the anf_ir proto file."""
def
build_graph
(
self
,
proto_data
):
"""
Build graph by graph proto which refer to `anf_ir_pb2.GraphProto`.
Args:
proto_data (anf_ir_pb2.GraphProto): Refer to `anf_ir_pb2.GraphProto`.
"""
logger
.
info
(
"Start to build graph, graph name: %s."
,
proto_data
.
name
)
start_time
=
time
.
time
()
super
(
MSGraph
,
self
).
build_graph
(
proto_data
)
precision
=
6
time_consuming
=
round
(
time
.
time
()
-
start_time
,
precision
)
logger
.
info
(
"Build graph end, all node count: %s, const count: %s, parameter count: %s, time-consuming: %s s."
,
self
.
normal_node_count
,
len
(
self
.
_const_node_temp_cache
),
len
(
self
.
_parameter_node_temp_cache
),
time_consuming
)
def
_parse_data
(
self
,
proto_data
):
"""
The proto data is parsed and all nodes are stored in the specified structure.
...
...
@@ -85,8 +65,6 @@ class MSGraph(Graph):
node_name
=
node_proto
.
full_name
node
=
Node
(
name
=
node_name
,
node_id
=
node_proto
.
name
)
node
.
type
=
node_proto
.
op_type
logger
.
debug
(
"Foreach graph proto nodes, node id: %s, node name: %s, node def name: %s, "
"input count: %s"
,
node
.
node_id
,
node
.
name
,
node_proto
.
name
,
len
(
node_proto
.
input
))
self
.
_parse_attributes
(
node_proto
.
attribute
,
node
)
self
.
_parse_inputs
(
node_proto
.
input
,
node
)
...
...
@@ -112,6 +90,7 @@ class MSGraph(Graph):
continue
node
=
Node
(
name
=
parameter
.
name
,
node_id
=
parameter
.
name
)
node
.
type
=
NodeTypeEnum
.
PARAMETER
.
value
node
.
output_data_type
=
self
.
_get_data_type_by_parse_type_proto
(
parameter
.
type
)
node
.
output_shape
=
self
.
_get_shape_by_parse_type_proto
(
parameter
.
type
)
attr
=
dict
(
type
=
self
.
_get_data_type_by_parse_type_proto
(
parameter
.
type
),
...
...
@@ -237,7 +216,7 @@ class MSGraph(Graph):
if
attr
.
value
.
ByteSize
()
>
self
.
MAX_NODE_ATTRIBUTE_VALUE_BYTES
:
message
=
f
"The attribute value of node(
{
node
.
name
}
) "
\
f
"is over
{
self
.
MAX_NODE_ATTRIBUTE_VALUE_BYTES
}
Bytes, will ignore."
logger
.
info
(
message
)
logger
.
warning
(
message
)
continue
node
.
add_attr
({
attr
.
name
:
str
(
attr
.
value
)})
...
...
tests/st/func/datavisual/graph/graph_results/test_query_nodes_success_result3.json
浏览文件 @
ad779f4e
{
"nodes"
:[{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add50"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape1"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add51"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape2"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add52"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape3"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape4"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add54"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape5"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
64
,
112
,
112
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape6"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape7"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape8"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape9"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape10"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape11"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape12"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
}]}
\ No newline at end of file
{
"nodes"
:[{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape1"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add50"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape2"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add51"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape3"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add52"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape4"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape5"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add54"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape6"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"shape"
:[
1
,
64
,
112
,
112
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape7"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape8"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape9"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape10"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape11"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape12"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
}]}
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results2.json
浏览文件 @
ad779f4e
{
"nodes"
:[{
"attr"
:{
"output_names"
:
"dtype: DT_GRAPHS
\n
values {
\n
dtype: DT_FLOAT64
\n
str_val:
\"
output
\"\n
}
\n
"
,
"pad_mode"
:
"dtype: DT_FLOAT64
\n
str_val:
\"
same
\"\n
"
},
"independent_layout"
:
false
,
"input"
:{
"Default/conv1-Conv2d/Parameter[12]_2/conv1.weight"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
64
,
3
,
7
,
7
]},
"Default/conv1-Conv2d/Parameter[12]_2/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x1"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x10"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x2"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x3"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x4"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x5"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x6"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x7"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x8"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/conv1-Conv2d/Parameter[12]_2/x9"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/conv1-Conv2d/Conv2D55"
,
"output"
:{
"Default/bn1/Reshape[12]_1/Reshape6"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
64
,
112
,
112
]}},
"output_i"
:
0
,
"proxy_input"
:{
"Default/conv1-Conv2d/Parameter[12]_2"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Conv2D"
},{
"attr"
:{},
"independent_layout"
:
true
,
"input"
:{},
"name"
:
"Default/conv1-Conv2d/Parameter[12]_2"
,
"output"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
64
,
3
,
7
,
7
]}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"edge_type"
:
"data"
}},
"subnode_count"
:
12
,
"type"
:
"aggregation_scope"
}]}
\ No newline at end of file
{
"nodes"
:[{
"name"
:
"Default/conv1-Conv2d/Conv2D55"
,
"type"
:
"Conv2D"
,
"attr"
:{
"output_names"
:
"dtype: DT_GRAPHS
\n
values {
\n
dtype: DT_FLOAT64
\n
str_val:
\"
output
\"\n
}
\n
"
,
"pad_mode"
:
"dtype: DT_FLOAT64
\n
str_val:
\"
same
\"\n
"
},
"input"
:{
"Default/conv1-Conv2d/Parameter[12]_2/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x1"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x2"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x3"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x4"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x5"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x6"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x7"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x8"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x9"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/x10"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/conv1-Conv2d/Parameter[12]_2/conv1.weight"
:{
"shape"
:[
64
,
3
,
7
,
7
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
}},
"output"
:{
"Default/bn1/Reshape[12]_1/Reshape6"
:{
"shape"
:[
1
,
64
,
112
,
112
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output_i"
:
0
,
"proxy_input"
:{
"Default/conv1-Conv2d/Parameter[12]_2"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/conv1-Conv2d/Parameter[12]_2"
,
"type"
:
"aggregation_scope"
,
"attr"
:{},
"input"
:{},
"output"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"shape"
:[
64
,
3
,
7
,
7
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"edge_type"
:
"data"
}},
"subnode_count"
:
12
,
"independent_layout"
:
true
}]}
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results3.json
浏览文件 @
ad779f4e
{
"nodes"
:[{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add50"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape1"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add51"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape2"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add52"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape3"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape4"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/Add[5]_0/Add54"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
1024
,
14
,
14
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape5"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
64
,
112
,
112
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape6"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape7"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape8"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape9"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape10"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape11"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"name"
:
"Default/bn1/Reshape[12]_1/Reshape12"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Reshape"
}]}
\ No newline at end of file
{
"nodes"
:[{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape1"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add50"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape2"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add51"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape3"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add52"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape4"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape5"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/Add[5]_0/Add54"
:{
"shape"
:[
1
,
1024
,
14
,
14
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape6"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/conv1-Conv2d/Conv2D55"
:{
"shape"
:[
1
,
64
,
112
,
112
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape7"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape8"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape9"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape10"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape11"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1/Reshape[12]_1/Reshape12"
,
"type"
:
"Reshape"
,
"attr"
:{},
"input"
:{
"Default/bn1/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
}]}
tests/ut/datavisual/processors/graph_results/test_get_nodes_success_expected_results4.json
浏览文件 @
ad779f4e
{
"nodes"
:[{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3/x"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x1"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x10"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x2"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x3"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x4"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x5"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x6"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x7"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x8"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x9"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/cst13"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[]}},
"name"
:
"Default/bn1-BatchNorm2d/tuple_getitem56"
,
"output"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"data_type"
:
"DT_STRING"
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[
1
,
128
,
28
,
28
]}},
"output_i"
:
0
,
"proxy_input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"tuple_getitem"
},{
"attr"
:{},
"independent_layout"
:
false
,
"input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3/conv1.weight"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
64
,
3
,
7
,
7
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x11"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x12"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x13"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x14"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x15"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x16"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x17"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x18"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x19"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x20"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]},
"Default/bn1-BatchNorm2d/cst25"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[]}},
"name"
:
"Default/bn1-BatchNorm2d/tuple_getitem105"
,
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"tuple_getitem"
},{
"attr"
:{},
"independent_layout"
:
true
,
"input"
:{},
"name"
:
"Default/bn1-BatchNorm2d/Parameter[22]_3"
,
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
64
,
3
,
7
,
7
]},
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"shape"
:[
1
,
3
,
224
,
224
]}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"edge_type"
:
"data"
},
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"edge_type"
:
"data"
}},
"subnode_count"
:
22
,
"type"
:
"aggregation_scope"
},{
"attr"
:{
"cst13"
:
"dtype: DT_INT32
\n
int_val: 0
\n
"
},
"independent_layout"
:
false
,
"input"
:{},
"name"
:
"Default/bn1-BatchNorm2d/cst13"
,
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[]}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Const"
},{
"attr"
:{
"cst25"
:
"dtype: DT_INT32
\n
int_val: 0
\n
"
},
"independent_layout"
:
false
,
"input"
:{},
"name"
:
"Default/bn1-BatchNorm2d/cst25"
,
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"data_type"
:
""
,
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"shape"
:[]}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"type"
:
"Const"
}]}
\ No newline at end of file
{
"nodes"
:[{
"name"
:
"Default/bn1-BatchNorm2d/tuple_getitem56"
,
"type"
:
"tuple_getitem"
,
"attr"
:{},
"input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3/x"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x1"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x2"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x3"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x4"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x5"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x6"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x7"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x8"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x9"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x10"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/cst13"
:{
"shape"
:[],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
""
}},
"output"
:{
"Default/bn1/Add[5]_0/Add53"
:{
"shape"
:[
1
,
128
,
28
,
28
],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
"DT_STRING"
}},
"output_i"
:
0
,
"proxy_input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1-BatchNorm2d/tuple_getitem105"
,
"type"
:
"tuple_getitem"
,
"attr"
:{},
"input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3/x11"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x12"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x13"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x14"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x15"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x16"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x17"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x18"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x19"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/x20"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/Parameter[22]_3/conv1.weight"
:{
"shape"
:[
64
,
3
,
7
,
7
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/cst25"
:{
"shape"
:[],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
""
}},
"output"
:{},
"output_i"
:
0
,
"proxy_input"
:{
"Default/bn1-BatchNorm2d/Parameter[22]_3"
:{
"edge_type"
:
"data"
}},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1-BatchNorm2d/Parameter[22]_3"
,
"type"
:
"aggregation_scope"
,
"attr"
:{},
"input"
:{},
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"shape"
:[
1
,
3
,
224
,
224
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
},
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"shape"
:[
64
,
3
,
7
,
7
],
"edge_type"
:
"data"
,
"independent_layout"
:
true
,
"data_type"
:
"DT_STRING"
}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"edge_type"
:
"data"
},
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"edge_type"
:
"data"
}},
"subnode_count"
:
22
,
"independent_layout"
:
true
},{
"name"
:
"Default/bn1-BatchNorm2d/cst13"
,
"type"
:
"Const"
,
"attr"
:{
"cst13"
:
"dtype: DT_INT32
\n
int_val: 0
\n
"
},
"input"
:{},
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem56"
:{
"shape"
:[],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
""
}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
},{
"name"
:
"Default/bn1-BatchNorm2d/cst25"
,
"type"
:
"Const"
,
"attr"
:{
"cst25"
:
"dtype: DT_INT32
\n
int_val: 0
\n
"
},
"input"
:{},
"output"
:{
"Default/bn1-BatchNorm2d/tuple_getitem105"
:{
"shape"
:[],
"edge_type"
:
"data"
,
"independent_layout"
:
false
,
"data_type"
:
""
}},
"output_i"
:
0
,
"proxy_input"
:{},
"proxy_output"
:{},
"subnode_count"
:
0
,
"independent_layout"
:
false
}]}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录