Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
c4325055
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看板
提交
c4325055
编写于
8月 04, 2020
作者:
L
Li Hongzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use the full_name as node_name
上级
6419c83c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
46 addition
and
19 deletion
+46
-19
mindinsight/datavisual/data_transform/graph/msgraph.py
mindinsight/datavisual/data_transform/graph/msgraph.py
+7
-2
mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto
mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto
+6
-1
mindinsight/datavisual/proto_files/mindinsight_anf_ir_pb2.py
mindinsight/datavisual/proto_files/mindinsight_anf_ir_pb2.py
+33
-16
未找到文件。
mindinsight/datavisual/data_transform/graph/msgraph.py
浏览文件 @
c4325055
...
@@ -17,6 +17,7 @@ import time
...
@@ -17,6 +17,7 @@ import time
from
mindinsight.datavisual.common.log
import
logger
from
mindinsight.datavisual.common.log
import
logger
from
mindinsight.datavisual.proto_files.mindinsight_anf_ir_pb2
import
DataType
from
mindinsight.datavisual.proto_files.mindinsight_anf_ir_pb2
import
DataType
from
mindinsight.datavisual.common.enums
import
PluginNameEnum
from
.node
import
Node
from
.node
import
Node
from
.node
import
NodeTypeEnum
from
.node
import
NodeTypeEnum
from
.graph
import
Graph
from
.graph
import
Graph
...
@@ -76,8 +77,12 @@ class MSGraph(Graph):
...
@@ -76,8 +77,12 @@ class MSGraph(Graph):
logger
.
warning
(
"Finding a node with an empty name will not save it."
)
logger
.
warning
(
"Finding a node with an empty name will not save it."
)
continue
continue
node_name
=
Node
.
create_node_name
(
scope
=
node_proto
.
scope
,
if
not
node_proto
.
full_name
or
any
(
base_name
=
f
'
{
node_proto
.
op_type
}{
node_proto
.
name
}
'
)
node_proto
.
full_name
.
lower
().
endswith
(
f
'[:
{
plugin
.
value
.
lower
()
}
]'
)
for
plugin
in
PluginNameEnum
):
node_name
=
Node
.
create_node_name
(
scope
=
node_proto
.
scope
,
base_name
=
f
'
{
node_proto
.
op_type
}{
node_proto
.
name
}
'
)
else
:
node_name
=
node_proto
.
full_name
node
=
Node
(
name
=
node_name
,
node_id
=
node_proto
.
name
)
node
=
Node
(
name
=
node_name
,
node_id
=
node_proto
.
name
)
node
.
type
=
node_proto
.
op_type
node
.
type
=
node_proto
.
op_type
logger
.
debug
(
"Foreach graph proto nodes, node id: %s, node name: %s, node def name: %s, "
logger
.
debug
(
"Foreach graph proto nodes, node id: %s, node name: %s, node def name: %s, "
...
...
mindinsight/datavisual/proto_files/mindinsight_anf_ir.proto
浏览文件 @
c4325055
...
@@ -85,9 +85,11 @@ enum DataType {
...
@@ -85,9 +85,11 @@ enum DataType {
DT_BASE_FLOAT
=
38
;
// type generate float
DT_BASE_FLOAT
=
38
;
// type generate float
DT_TYPE
=
39
;
// type type
DT_TYPE
=
39
;
// type type
DT_ANYTHING
=
40
;
// type anything
DT_ANYTHING
=
40
;
// type anything
DT_REFKEY
=
41
;
// type refkey
DT_REF
=
42
;
// type ref
}
}
// Value definiton for attribute value or parameter default value
// Value definit
i
on for attribute value or parameter default value
message
ValueProto
{
message
ValueProto
{
// data type of value
// data type of value
optional
DataType
dtype
=
1
;
// discriminator that indicates which field below is in use
optional
DataType
dtype
=
1
;
// discriminator that indicates which field below is in use
...
@@ -223,6 +225,9 @@ message NodeProto {
...
@@ -223,6 +225,9 @@ message NodeProto {
// other fields for debug
// other fields for debug
optional
uint64
output_i
=
7
;
optional
uint64
output_i
=
7
;
// The full_name_with_scope of CNode
optional
string
full_name
=
8
;
}
}
// Models
// Models
...
...
mindinsight/datavisual/proto_files/mindinsight_anf_ir_pb2.py
浏览文件 @
c4325055
...
@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
...
@@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package
=
'mindinsight'
,
package
=
'mindinsight'
,
syntax
=
'proto2'
,
syntax
=
'proto2'
,
serialized_options
=
None
,
serialized_options
=
None
,
serialized_pb
=
b
'
\n\x18
mindinsight_anf_ir.proto
\x12\x0b
mindinsight
\"\xc3\x04\n\n
ValueProto
\x12
$
\n\x05\x64
type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x10\n\x08\x62
ool_val
\x18\x02
\x01
(
\x08\x12\x0f\n\x07
int_val
\x18\x03
\x01
(
\x03\x12\x10\n\x08
uint_val
\x18\x04
\x01
(
\x04\x12\x11\n\t
float_val
\x18\x05
\x01
(
\x02\x12\x12\n\n
double_val
\x18\x06
\x01
(
\x01\x12\x0f\n\x07
str_val
\x18\x07
\x01
(
\t\x12
,
\n\n
tensor_val
\x18\x08
\x01
(
\x0b\x32\x18
.mindinsight.TensorProto
\x12
&
\n\x05
graph
\x18\t
\x01
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\x11\n\t
bool_vals
\x18\n
\x03
(
\x08\x12\x10\n\x08
int_vals
\x18\x0b
\x03
(
\x03\x12\x11\n\t
uint_vals
\x18\x0c
\x03
(
\x04\x12\x12\n\n
float_vals
\x18\r
\x03
(
\x02\x12\x13\n\x0b\x64
ouble_vals
\x18\x0e
\x03
(
\x01\x12\x10\n\x08
str_vals
\x18\x0f
\x03
(
\t\x12
-
\n\x0b
tensor_vals
\x18\x10
\x03
(
\x0b\x32\x18
.mindinsight.TensorProto
\x12\'\n\x06
graphs
\x18\x11
\x03
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\'\n\x06
values
\x18\x12
\x03
(
\x0b\x32\x17
.mindinsight.ValueProto
\x12
.
\n\x08\x64
ict_val
\x18\x13
\x03
(
\x0b\x32\x1c
.mindinsight.NamedValueProto
\x12
(
\n\x08
type_val
\x18\x14
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\"
F
\n\x0e\x41
ttributeProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
&
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
F
\n\x0f
NamedValueProto
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12
&
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
q
\n\x10
TensorShapeProto
\x12\x34\n\x03\x64
im
\x18\x01
\x03
(
\x0b\x32\'
.mindinsight.TensorShapeProto.Dimension
\x1a\'\n\t
Dimension
\x12\x0c\n\x04
size
\x18\x01
\x01
(
\x03\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\"\xc8\x02\n\t
TypeProto
\x12
(
\n\t
data_type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x34\n\x0b
tensor_type
\x18\x02
\x01
(
\x0b\x32\x1d
.mindinsight.TypeProto.TensorH
\x00\x12\x38\n\r
sequence_type
\x18\x03
\x01
(
\x0b\x32\x1f
.mindinsight.TypeProto.SequenceH
\x00\x1a
`
\n\x06
Tensor
\x12
(
\n\t
elem_type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12
,
\n\x05
shape
\x18\x02
\x01
(
\x0b\x32\x1d
.mindinsight.TensorShapeProto
\x1a\x36\n\x08
Sequence
\x12
*
\n\n
elem_types
\x18\x01
\x03
(
\x0b\x32\x16
.mindinsight.TypeProtoB
\x07\n\x05
value
\"
r
\n\x0e
ParameterProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
$
\n\x04
type
\x18\x02
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\x12
,
\n\x0b\x64\x65\x66\x61
ult_val
\x18\x03
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
A
\n\x0b
OutputProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
$
\n\x04
type
\x18\x02
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\"
w
\n\n
InputProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
.
\n\x04
type
\x18\x02
\x01
(
\x0e\x32
.mindinsight.InputProto.EdgeType
\"
+
\n\x08\x45\x64
geType
\x12\r\n\t
DATA_EDGE
\x10\x00\x12\x10\n\x0c\x43
ONTROL_EDGE
\x10\x01\"\x
d0\x01\n\t
NodeProto
\x12
&
\n\x05
input
\x18\x01
\x03
(
\x0b\x32\x17
.mindinsight.InputProto
\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\x12\x0f\n\x07
op_type
\x18\x03
\x01
(
\t\x12\r\n\x05
scope
\x18\x04
\x01
(
\t\x12
.
\n\t
attribute
\x18\x05
\x03
(
\x0b\x32\x1b
.mindinsight.AttributeProto
\x12
+
\n\x0b
output_type
\x18\x06
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\x12\x10\n\x08
output_i
\x18\x07
\x01
(
\x04\"\xaa\x01\n\n
ModelProto
\x12\x12\n\n
ir_version
\x18\x01
\x01
(
\x03\x12\x0e\n\x06\x64
omain
\x18\x02
\x01
(
\t\x12\x15\n\r
model_version
\x18\x03
\x01
(
\x03\x12
&
\n\x05
graph
\x18\x04
\x01
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\x39\n\x12
metadata_operators
\x18\x05
\x01
(
\x0b\x32\x1d
.mindinsight.OperatorSetProto
\"
?
\n\r
OperatorProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12\x0e\n\x06\x63
onfig
\x18\x02
\x01
(
\x0c\x12\x10\n\x08
obj_info
\x18\x03
\x01
(
\x0c\"
R
\n\x10
OperatorSetProto
\x12
-
\n\t
operators
\x18\x01
\x03
(
\x0b\x32\x1a
.mindinsight.OperatorProto
\x12\x0f\n\x07
summary
\x18\x02
\x01
(
\t\"\xce\x01\n\n
GraphProto
\x12
$
\n\x04
node
\x18\x01
\x03
(
\x0b\x32\x16
.mindinsight.NodeProto
\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\x12
/
\n\n
parameters
\x18\x03
\x03
(
\x0b\x32\x1b
.mindinsight.ParameterProto
\x12
)
\n\x07
outputs
\x18\x04
\x03
(
\x0b\x32\x18
.mindinsight.OutputProto
\x12\x30\n\n
const_vals
\x18\x05
\x03
(
\x0b\x32\x1c
.mindinsight.NamedValueProto
\"\xd1\x01\n\x0b
TensorProto
\x12\x0c\n\x04\x64
ims
\x18\x01
\x03
(
\x03\x12
(
\n\t
data_type
\x18\x02
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x16\n\n
float_data
\x18\x03
\x03
(
\x02\x42\x02\x10\x01\x12\x16\n\n
int32_data
\x18\x04
\x03
(
\x05\x42\x02\x10\x01\x12\x16\n\n
int64_data
\x18\x05
\x03
(
\x03\x42\x02\x10\x01\x12\x17\n\x0b\x64
ouble_data
\x18\x06
\x03
(
\x01\x42\x02\x10\x01\x12\x17\n\x0b
uint64_data
\x18\x07
\x03
(
\x04\x42\x02\x10\x01\x12\x10\n\x08
raw_data
\x18\x08
\x01
(
\x0c
*/
\n\x07
Version
\x12\x14\n\x10
UNKNOWWN_VERSION
\x10\x00\x12\x0e\n\n
IR_VERSION
\x10\x01
*
\xfb\x04\n\x08\x44\x61
taType
\x12\x10\n\x0c\x44
T_UNDEFINED
\x10\x00\x12\x0b\n\x07\x44
T_BOOL
\x10\x01\x12\x0b\n\x07\x44
T_INT8
\x10\x02\x12\x0c\n\x08\x44
T_INT16
\x10\x03\x12\x0c\n\x08\x44
T_INT32
\x10\x04\x12\x0c\n\x08\x44
T_INT64
\x10\x05\x12\x0c\n\x08\x44
T_UINT8
\x10\x06\x12\r\n\t
DT_UINT16
\x10\x07\x12\r\n\t
DT_UINT32
\x10\x08\x12\r\n\t
DT_UINT64
\x10\t\x12\x0e\n\n
DT_FLOAT16
\x10\n\x12\x0e\n\n
DT_FLOAT32
\x10\x0b\x12\x0e\n\n
DT_FLOAT64
\x10\x0c\x12\r\n\t
DT_STRING
\x10\r\x12\r\n\t
DT_TENSOR
\x10\x0e\x12\x0c\n\x08\x44
T_GRAPH
\x10\x0f\x12\x0c\n\x08\x44
T_BOOLS
\x10\x10\x12\x0c\n\x08\x44
T_INTS8
\x10\x11\x12\r\n\t
DT_INTS16
\x10\x12\x12\r\n\t
DT_INTS32
\x10\x13\x12\r\n\t
DT_INTS64
\x10\x14\x12\r\n\t
DT_UINTS8
\x10\x15\x12\x0e\n\n
DT_UINTS16
\x10\x16\x12\x0e\n\n
DT_UINTS32
\x10\x17\x12\x0e\n\n
DT_UINTS64
\x10\x18\x12\x0f\n\x0b\x44
T_FLOATS16
\x10\x19\x12\x0f\n\x0b\x44
T_FLOATS32
\x10\x1a\x12\x0f\n\x0b\x44
T_FLOATS64
\x10\x1b\x12\x0e\n\n
DT_STRINGS
\x10\x1c\x12\x0e\n\n
DT_TENSORS
\x10\x1d\x12\r\n\t
DT_GRAPHS
\x10\x1e\x12\x0c\n\x08\x44
T_TUPLE
\x10\x1f\x12\x0b\n\x07\x44
T_LIST
\x10
\x12\x0b\n\x07\x44
T_DICT
\x10
!
\x12\x0b\n\x07\x44
T_NONE
\x10\"\x12\x0f\n\x0b\x44
T_SYM_INST
\x10
#
\x12\x0f\n\x0b\x44
T_BASE_INT
\x10
$
\x12\x10\n\x0c\x44
T_BASE_UINT
\x10
%
\x12\x11\n\r
DT_BASE_FLOAT
\x10
&
\x12\x0b\n\x07\x44
T_TYPE
\x10\'\x12\x0f\n\x0b\x44
T_ANYTHING
\x10
(
'
serialized_pb
=
b
'
\n\x18
mindinsight_anf_ir.proto
\x12\x0b
mindinsight
\"\xc3\x04\n\n
ValueProto
\x12
$
\n\x05\x64
type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x10\n\x08\x62
ool_val
\x18\x02
\x01
(
\x08\x12\x0f\n\x07
int_val
\x18\x03
\x01
(
\x03\x12\x10\n\x08
uint_val
\x18\x04
\x01
(
\x04\x12\x11\n\t
float_val
\x18\x05
\x01
(
\x02\x12\x12\n\n
double_val
\x18\x06
\x01
(
\x01\x12\x0f\n\x07
str_val
\x18\x07
\x01
(
\t\x12
,
\n\n
tensor_val
\x18\x08
\x01
(
\x0b\x32\x18
.mindinsight.TensorProto
\x12
&
\n\x05
graph
\x18\t
\x01
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\x11\n\t
bool_vals
\x18\n
\x03
(
\x08\x12\x10\n\x08
int_vals
\x18\x0b
\x03
(
\x03\x12\x11\n\t
uint_vals
\x18\x0c
\x03
(
\x04\x12\x12\n\n
float_vals
\x18\r
\x03
(
\x02\x12\x13\n\x0b\x64
ouble_vals
\x18\x0e
\x03
(
\x01\x12\x10\n\x08
str_vals
\x18\x0f
\x03
(
\t\x12
-
\n\x0b
tensor_vals
\x18\x10
\x03
(
\x0b\x32\x18
.mindinsight.TensorProto
\x12\'\n\x06
graphs
\x18\x11
\x03
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\'\n\x06
values
\x18\x12
\x03
(
\x0b\x32\x17
.mindinsight.ValueProto
\x12
.
\n\x08\x64
ict_val
\x18\x13
\x03
(
\x0b\x32\x1c
.mindinsight.NamedValueProto
\x12
(
\n\x08
type_val
\x18\x14
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\"
F
\n\x0e\x41
ttributeProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
&
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
F
\n\x0f
NamedValueProto
\x12\x0b\n\x03
key
\x18\x01
\x01
(
\t\x12
&
\n\x05
value
\x18\x02
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
q
\n\x10
TensorShapeProto
\x12\x34\n\x03\x64
im
\x18\x01
\x03
(
\x0b\x32\'
.mindinsight.TensorShapeProto.Dimension
\x1a\'\n\t
Dimension
\x12\x0c\n\x04
size
\x18\x01
\x01
(
\x03\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\"\xc8\x02\n\t
TypeProto
\x12
(
\n\t
data_type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x34\n\x0b
tensor_type
\x18\x02
\x01
(
\x0b\x32\x1d
.mindinsight.TypeProto.TensorH
\x00\x12\x38\n\r
sequence_type
\x18\x03
\x01
(
\x0b\x32\x1f
.mindinsight.TypeProto.SequenceH
\x00\x1a
`
\n\x06
Tensor
\x12
(
\n\t
elem_type
\x18\x01
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12
,
\n\x05
shape
\x18\x02
\x01
(
\x0b\x32\x1d
.mindinsight.TensorShapeProto
\x1a\x36\n\x08
Sequence
\x12
*
\n\n
elem_types
\x18\x01
\x03
(
\x0b\x32\x16
.mindinsight.TypeProtoB
\x07\n\x05
value
\"
r
\n\x0e
ParameterProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
$
\n\x04
type
\x18\x02
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\x12
,
\n\x0b\x64\x65\x66\x61
ult_val
\x18\x03
\x01
(
\x0b\x32\x17
.mindinsight.ValueProto
\"
A
\n\x0b
OutputProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
$
\n\x04
type
\x18\x02
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\"
w
\n\n
InputProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12
.
\n\x04
type
\x18\x02
\x01
(
\x0e\x32
.mindinsight.InputProto.EdgeType
\"
+
\n\x08\x45\x64
geType
\x12\r\n\t
DATA_EDGE
\x10\x00\x12\x10\n\x0c\x43
ONTROL_EDGE
\x10\x01\"\x
e3\x01\n\t
NodeProto
\x12
&
\n\x05
input
\x18\x01
\x03
(
\x0b\x32\x17
.mindinsight.InputProto
\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\x12\x0f\n\x07
op_type
\x18\x03
\x01
(
\t\x12\r\n\x05
scope
\x18\x04
\x01
(
\t\x12
.
\n\t
attribute
\x18\x05
\x03
(
\x0b\x32\x1b
.mindinsight.AttributeProto
\x12
+
\n\x0b
output_type
\x18\x06
\x01
(
\x0b\x32\x16
.mindinsight.TypeProto
\x12\x10\n\x08
output_i
\x18\x07
\x01
(
\x04\x12\x11\n\t
full_name
\x18\x08
\x01
(
\t\"\xaa\x01\n\n
ModelProto
\x12\x12\n\n
ir_version
\x18\x01
\x01
(
\x03\x12\x0e\n\x06\x64
omain
\x18\x02
\x01
(
\t\x12\x15\n\r
model_version
\x18\x03
\x01
(
\x03\x12
&
\n\x05
graph
\x18\x04
\x01
(
\x0b\x32\x17
.mindinsight.GraphProto
\x12\x39\n\x12
metadata_operators
\x18\x05
\x01
(
\x0b\x32\x1d
.mindinsight.OperatorSetProto
\"
?
\n\r
OperatorProto
\x12\x0c\n\x04
name
\x18\x01
\x01
(
\t\x12\x0e\n\x06\x63
onfig
\x18\x02
\x01
(
\x0c\x12\x10\n\x08
obj_info
\x18\x03
\x01
(
\x0c\"
R
\n\x10
OperatorSetProto
\x12
-
\n\t
operators
\x18\x01
\x03
(
\x0b\x32\x1a
.mindinsight.OperatorProto
\x12\x0f\n\x07
summary
\x18\x02
\x01
(
\t\"\xce\x01\n\n
GraphProto
\x12
$
\n\x04
node
\x18\x01
\x03
(
\x0b\x32\x16
.mindinsight.NodeProto
\x12\x0c\n\x04
name
\x18\x02
\x01
(
\t\x12
/
\n\n
parameters
\x18\x03
\x03
(
\x0b\x32\x1b
.mindinsight.ParameterProto
\x12
)
\n\x07
outputs
\x18\x04
\x03
(
\x0b\x32\x18
.mindinsight.OutputProto
\x12\x30\n\n
const_vals
\x18\x05
\x03
(
\x0b\x32\x1c
.mindinsight.NamedValueProto
\"\xd1\x01\n\x0b
TensorProto
\x12\x0c\n\x04\x64
ims
\x18\x01
\x03
(
\x03\x12
(
\n\t
data_type
\x18\x02
\x01
(
\x0e\x32\x15
.mindinsight.DataType
\x12\x16\n\n
float_data
\x18\x03
\x03
(
\x02\x42\x02\x10\x01\x12\x16\n\n
int32_data
\x18\x04
\x03
(
\x05\x42\x02\x10\x01\x12\x16\n\n
int64_data
\x18\x05
\x03
(
\x03\x42\x02\x10\x01\x12\x17\n\x0b\x64
ouble_data
\x18\x06
\x03
(
\x01\x42\x02\x10\x01\x12\x17\n\x0b
uint64_data
\x18\x07
\x03
(
\x04\x42\x02\x10\x01\x12\x10\n\x08
raw_data
\x18\x08
\x01
(
\x0c
*/
\n\x07
Version
\x12\x14\n\x10
UNKNOWWN_VERSION
\x10\x00\x12\x0e\n\n
IR_VERSION
\x10\x01
*
\x96\x05\n\x08\x44\x61
taType
\x12\x10\n\x0c\x44
T_UNDEFINED
\x10\x00\x12\x0b\n\x07\x44
T_BOOL
\x10\x01\x12\x0b\n\x07\x44
T_INT8
\x10\x02\x12\x0c\n\x08\x44
T_INT16
\x10\x03\x12\x0c\n\x08\x44
T_INT32
\x10\x04\x12\x0c\n\x08\x44
T_INT64
\x10\x05\x12\x0c\n\x08\x44
T_UINT8
\x10\x06\x12\r\n\t
DT_UINT16
\x10\x07\x12\r\n\t
DT_UINT32
\x10\x08\x12\r\n\t
DT_UINT64
\x10\t\x12\x0e\n\n
DT_FLOAT16
\x10\n\x12\x0e\n\n
DT_FLOAT32
\x10\x0b\x12\x0e\n\n
DT_FLOAT64
\x10\x0c\x12\r\n\t
DT_STRING
\x10\r\x12\r\n\t
DT_TENSOR
\x10\x0e\x12\x0c\n\x08\x44
T_GRAPH
\x10\x0f\x12\x0c\n\x08\x44
T_BOOLS
\x10\x10\x12\x0c\n\x08\x44
T_INTS8
\x10\x11\x12\r\n\t
DT_INTS16
\x10\x12\x12\r\n\t
DT_INTS32
\x10\x13\x12\r\n\t
DT_INTS64
\x10\x14\x12\r\n\t
DT_UINTS8
\x10\x15\x12\x0e\n\n
DT_UINTS16
\x10\x16\x12\x0e\n\n
DT_UINTS32
\x10\x17\x12\x0e\n\n
DT_UINTS64
\x10\x18\x12\x0f\n\x0b\x44
T_FLOATS16
\x10\x19\x12\x0f\n\x0b\x44
T_FLOATS32
\x10\x1a\x12\x0f\n\x0b\x44
T_FLOATS64
\x10\x1b\x12\x0e\n\n
DT_STRINGS
\x10\x1c\x12\x0e\n\n
DT_TENSORS
\x10\x1d\x12\r\n\t
DT_GRAPHS
\x10\x1e\x12\x0c\n\x08\x44
T_TUPLE
\x10\x1f\x12\x0b\n\x07\x44
T_LIST
\x10
\x12\x0b\n\x07\x44
T_DICT
\x10
!
\x12\x0b\n\x07\x44
T_NONE
\x10\"\x12\x0f\n\x0b\x44
T_SYM_INST
\x10
#
\x12\x0f\n\x0b\x44
T_BASE_INT
\x10
$
\x12\x10\n\x0c\x44
T_BASE_UINT
\x10
%
\x12\x11\n\r
DT_BASE_FLOAT
\x10
&
\x12\x0b\n\x07\x44
T_TYPE
\x10\'\x12\x0f\n\x0b\x44
T_ANYTHING
\x10
(
\x12\r\n\t
DT_REFKEY
\x10
)
\x12\n\n\x06\x44
T_REF
\x10
*
'
)
)
_VERSION
=
_descriptor
.
EnumDescriptor
(
_VERSION
=
_descriptor
.
EnumDescriptor
(
...
@@ -39,8 +39,8 @@ _VERSION = _descriptor.EnumDescriptor(
...
@@ -39,8 +39,8 @@ _VERSION = _descriptor.EnumDescriptor(
],
],
containing_type
=
None
,
containing_type
=
None
,
serialized_options
=
None
,
serialized_options
=
None
,
serialized_start
=
24
71
,
serialized_start
=
24
90
,
serialized_end
=
25
18
,
serialized_end
=
25
37
,
)
)
_sym_db
.
RegisterEnumDescriptor
(
_VERSION
)
_sym_db
.
RegisterEnumDescriptor
(
_VERSION
)
...
@@ -215,11 +215,19 @@ _DATATYPE = _descriptor.EnumDescriptor(
...
@@ -215,11 +215,19 @@ _DATATYPE = _descriptor.EnumDescriptor(
name
=
'DT_ANYTHING'
,
index
=
40
,
number
=
40
,
name
=
'DT_ANYTHING'
,
index
=
40
,
number
=
40
,
serialized_options
=
None
,
serialized_options
=
None
,
type
=
None
),
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'DT_REFKEY'
,
index
=
41
,
number
=
41
,
serialized_options
=
None
,
type
=
None
),
_descriptor
.
EnumValueDescriptor
(
name
=
'DT_REF'
,
index
=
42
,
number
=
42
,
serialized_options
=
None
,
type
=
None
),
],
],
containing_type
=
None
,
containing_type
=
None
,
serialized_options
=
None
,
serialized_options
=
None
,
serialized_start
=
25
21
,
serialized_start
=
25
40
,
serialized_end
=
3
156
,
serialized_end
=
3
202
,
)
)
_sym_db
.
RegisterEnumDescriptor
(
_DATATYPE
)
_sym_db
.
RegisterEnumDescriptor
(
_DATATYPE
)
...
@@ -267,6 +275,8 @@ DT_BASE_UINT = 37
...
@@ -267,6 +275,8 @@ DT_BASE_UINT = 37
DT_BASE_FLOAT
=
38
DT_BASE_FLOAT
=
38
DT_TYPE
=
39
DT_TYPE
=
39
DT_ANYTHING
=
40
DT_ANYTHING
=
40
DT_REFKEY
=
41
DT_REF
=
42
_INPUTPROTO_EDGETYPE
=
_descriptor
.
EnumDescriptor
(
_INPUTPROTO_EDGETYPE
=
_descriptor
.
EnumDescriptor
(
...
@@ -893,6 +903,13 @@ _NODEPROTO = _descriptor.Descriptor(
...
@@ -893,6 +903,13 @@ _NODEPROTO = _descriptor.Descriptor(
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
serialized_options
=
None
,
file
=
DESCRIPTOR
),
_descriptor
.
FieldDescriptor
(
name
=
'full_name'
,
full_name
=
'mindinsight.NodeProto.full_name'
,
index
=
7
,
number
=
8
,
type
=
9
,
cpp_type
=
9
,
label
=
1
,
has_default_value
=
False
,
default_value
=
b
""
.
decode
(
'utf-8'
),
message_type
=
None
,
enum_type
=
None
,
containing_type
=
None
,
is_extension
=
False
,
extension_scope
=
None
,
serialized_options
=
None
,
file
=
DESCRIPTOR
),
],
],
extensions
=
[
extensions
=
[
],
],
...
@@ -906,7 +923,7 @@ _NODEPROTO = _descriptor.Descriptor(
...
@@ -906,7 +923,7 @@ _NODEPROTO = _descriptor.Descriptor(
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
1518
,
serialized_start
=
1518
,
serialized_end
=
17
26
,
serialized_end
=
17
45
,
)
)
...
@@ -964,8 +981,8 @@ _MODELPROTO = _descriptor.Descriptor(
...
@@ -964,8 +981,8 @@ _MODELPROTO = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
17
29
,
serialized_start
=
17
48
,
serialized_end
=
1
899
,
serialized_end
=
1
918
,
)
)
...
@@ -1009,8 +1026,8 @@ _OPERATORPROTO = _descriptor.Descriptor(
...
@@ -1009,8 +1026,8 @@ _OPERATORPROTO = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
19
01
,
serialized_start
=
19
20
,
serialized_end
=
19
64
,
serialized_end
=
19
83
,
)
)
...
@@ -1047,8 +1064,8 @@ _OPERATORSETPROTO = _descriptor.Descriptor(
...
@@ -1047,8 +1064,8 @@ _OPERATORSETPROTO = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
19
66
,
serialized_start
=
19
85
,
serialized_end
=
20
48
,
serialized_end
=
20
67
,
)
)
...
@@ -1106,8 +1123,8 @@ _GRAPHPROTO = _descriptor.Descriptor(
...
@@ -1106,8 +1123,8 @@ _GRAPHPROTO = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
20
51
,
serialized_start
=
20
70
,
serialized_end
=
22
57
,
serialized_end
=
22
76
,
)
)
...
@@ -1186,8 +1203,8 @@ _TENSORPROTO = _descriptor.Descriptor(
...
@@ -1186,8 +1203,8 @@ _TENSORPROTO = _descriptor.Descriptor(
extension_ranges
=
[],
extension_ranges
=
[],
oneofs
=
[
oneofs
=
[
],
],
serialized_start
=
22
60
,
serialized_start
=
22
79
,
serialized_end
=
24
69
,
serialized_end
=
24
88
,
)
)
_VALUEPROTO
.
fields_by_name
[
'dtype'
].
enum_type
=
_DATATYPE
_VALUEPROTO
.
fields_by_name
[
'dtype'
].
enum_type
=
_DATATYPE
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录