You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

mindinsight_summary_pb2.py 35 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: mindinsight_summary.proto
  3. import sys
  4. _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import message as _message
  7. from google.protobuf import reflection as _reflection
  8. from google.protobuf import symbol_database as _symbol_database
  9. from google.protobuf import descriptor_pb2
  10. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. from mindinsight.datavisual.proto_files import mindinsight_anf_ir_pb2 as mindinsight__anf__ir__pb2
  13. DESCRIPTOR = _descriptor.FileDescriptor(
  14. name='mindinsight_summary.proto',
  15. package='mindinsight',
  16. syntax='proto2',
  17. serialized_pb=_b('\n\x19mindinsight_summary.proto\x12\x0bmindinsight\x1a\x18mindinsight_anf_ir.proto\"\xc3\x01\n\x05\x45vent\x12\x11\n\twall_time\x18\x01 \x02(\x01\x12\x0c\n\x04step\x18\x02 \x01(\x03\x12\x11\n\x07version\x18\x03 \x01(\tH\x00\x12,\n\tgraph_def\x18\x04 \x01(\x0b\x32\x17.mindinsight.GraphProtoH\x00\x12\'\n\x07summary\x18\x05 \x01(\x0b\x32\x14.mindinsight.SummaryH\x00\x12\'\n\x07\x65xplain\x18\x06 \x01(\x0b\x32\x14.mindinsight.ExplainH\x00\x42\x06\n\x04what\"\xc0\x04\n\x07Summary\x12)\n\x05value\x18\x01 \x03(\x0b\x32\x1a.mindinsight.Summary.Value\x1aQ\n\x05Image\x12\x0e\n\x06height\x18\x01 \x02(\x05\x12\r\n\x05width\x18\x02 \x02(\x05\x12\x12\n\ncolorspace\x18\x03 \x02(\x05\x12\x15\n\rencoded_image\x18\x04 \x02(\x0c\x1a\xf0\x01\n\tHistogram\x12\x36\n\x07\x62uckets\x18\x01 \x03(\x0b\x32%.mindinsight.Summary.Histogram.bucket\x12\x11\n\tnan_count\x18\x02 \x01(\x03\x12\x15\n\rpos_inf_count\x18\x03 \x01(\x03\x12\x15\n\rneg_inf_count\x18\x04 \x01(\x03\x12\x0b\n\x03max\x18\x05 \x01(\x01\x12\x0b\n\x03min\x18\x06 \x01(\x01\x12\x0b\n\x03sum\x18\x07 \x01(\x01\x12\r\n\x05\x63ount\x18\x08 \x01(\x03\x1a\x34\n\x06\x62ucket\x12\x0c\n\x04left\x18\x01 \x02(\x01\x12\r\n\x05width\x18\x02 \x02(\x01\x12\r\n\x05\x63ount\x18\x03 \x02(\x03\x1a\xc3\x01\n\x05Value\x12\x0b\n\x03tag\x18\x01 \x02(\t\x12\x16\n\x0cscalar_value\x18\x03 \x01(\x02H\x00\x12+\n\x05image\x18\x04 \x01(\x0b\x32\x1a.mindinsight.Summary.ImageH\x00\x12*\n\x06tensor\x18\x08 \x01(\x0b\x32\x18.mindinsight.TensorProtoH\x00\x12\x33\n\thistogram\x18\t \x01(\x0b\x32\x1e.mindinsight.Summary.HistogramH\x00\x42\x07\n\x05value\"\xa9\x06\n\x07\x45xplain\x12\x10\n\x08image_id\x18\x01 \x01(\t\x12\x12\n\nimage_data\x18\x02 \x01(\x0c\x12\x1a\n\x12ground_truth_label\x18\x03 \x03(\x05\x12\x31\n\tinference\x18\x04 \x01(\x0b\x32\x1e.mindinsight.Explain.Inference\x12\x35\n\x0b\x65xplanation\x18\x05 \x03(\x0b\x32 .mindinsight.Explain.Explanation\x12\x31\n\tbenchmark\x18\x06 \x03(\x0b\x32\x1e.mindinsight.Explain.Benchmark\x12/\n\x08metadata\x18\x07 \x01(\x0b\x32\x1d.mindinsight.Explain.Metadata\x12\x0e\n\x06status\x18\x08 \x01(\t\x1aW\n\tInference\x12\x19\n\x11ground_truth_prob\x18\x01 \x03(\x02\x12\x17\n\x0fpredicted_label\x18\x02 \x03(\x05\x12\x16\n\x0epredicted_prob\x18\x03 \x03(\x02\x1a\x44\n\x0b\x45xplanation\x12\x16\n\x0e\x65xplain_method\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\x05\x12\x0e\n\x06hitmap\x18\x03 \x01(\x0c\x1a\x91\x02\n\tBenchmark\x12\x16\n\x0e\x65xplain_method\x18\x01 \x01(\t\x12>\n\x0btotal_score\x18\x02 \x03(\x0b\x32).mindinsight.Explain.Benchmark.TotalScore\x12>\n\x0blabel_score\x18\x03 \x03(\x0b\x32).mindinsight.Explain.Benchmark.LabelScore\x1a\x35\n\nTotalScore\x12\x18\n\x10\x62\x65nchmark_method\x18\x01 \x01(\t\x12\r\n\x05score\x18\x02 \x01(\x02\x1a\x35\n\nLabelScore\x12\r\n\x05score\x18\x01 \x03(\x02\x12\x18\n\x10\x62\x65nchmark_method\x18\x02 \x01(\t\x1aK\n\x08Metadata\x12\r\n\x05label\x18\x01 \x03(\t\x12\x16\n\x0e\x65xplain_method\x18\x02 \x03(\t\x12\x18\n\x10\x62\x65nchmark_method\x18\x03 \x03(\tB\x03\xf8\x01\x01')
  18. ,
  19. dependencies=[mindinsight__anf__ir__pb2.DESCRIPTOR,])
  20. _EVENT = _descriptor.Descriptor(
  21. name='Event',
  22. full_name='mindinsight.Event',
  23. filename=None,
  24. file=DESCRIPTOR,
  25. containing_type=None,
  26. fields=[
  27. _descriptor.FieldDescriptor(
  28. name='wall_time', full_name='mindinsight.Event.wall_time', index=0,
  29. number=1, type=1, cpp_type=5, label=2,
  30. has_default_value=False, default_value=float(0),
  31. message_type=None, enum_type=None, containing_type=None,
  32. is_extension=False, extension_scope=None,
  33. options=None, file=DESCRIPTOR),
  34. _descriptor.FieldDescriptor(
  35. name='step', full_name='mindinsight.Event.step', index=1,
  36. number=2, type=3, cpp_type=2, label=1,
  37. has_default_value=False, default_value=0,
  38. message_type=None, enum_type=None, containing_type=None,
  39. is_extension=False, extension_scope=None,
  40. options=None, file=DESCRIPTOR),
  41. _descriptor.FieldDescriptor(
  42. name='version', full_name='mindinsight.Event.version', index=2,
  43. number=3, type=9, cpp_type=9, label=1,
  44. has_default_value=False, default_value=_b("").decode('utf-8'),
  45. message_type=None, enum_type=None, containing_type=None,
  46. is_extension=False, extension_scope=None,
  47. options=None, file=DESCRIPTOR),
  48. _descriptor.FieldDescriptor(
  49. name='graph_def', full_name='mindinsight.Event.graph_def', index=3,
  50. number=4, type=11, cpp_type=10, label=1,
  51. has_default_value=False, default_value=None,
  52. message_type=None, enum_type=None, containing_type=None,
  53. is_extension=False, extension_scope=None,
  54. options=None, file=DESCRIPTOR),
  55. _descriptor.FieldDescriptor(
  56. name='summary', full_name='mindinsight.Event.summary', index=4,
  57. number=5, type=11, cpp_type=10, label=1,
  58. has_default_value=False, default_value=None,
  59. message_type=None, enum_type=None, containing_type=None,
  60. is_extension=False, extension_scope=None,
  61. options=None, file=DESCRIPTOR),
  62. _descriptor.FieldDescriptor(
  63. name='explain', full_name='mindinsight.Event.explain', index=5,
  64. number=6, type=11, cpp_type=10, label=1,
  65. has_default_value=False, default_value=None,
  66. message_type=None, enum_type=None, containing_type=None,
  67. is_extension=False, extension_scope=None,
  68. options=None, file=DESCRIPTOR),
  69. ],
  70. extensions=[
  71. ],
  72. nested_types=[],
  73. enum_types=[
  74. ],
  75. options=None,
  76. is_extendable=False,
  77. syntax='proto2',
  78. extension_ranges=[],
  79. oneofs=[
  80. _descriptor.OneofDescriptor(
  81. name='what', full_name='mindinsight.Event.what',
  82. index=0, containing_type=None, fields=[]),
  83. ],
  84. serialized_start=69,
  85. serialized_end=264,
  86. )
  87. _SUMMARY_IMAGE = _descriptor.Descriptor(
  88. name='Image',
  89. full_name='mindinsight.Summary.Image',
  90. filename=None,
  91. file=DESCRIPTOR,
  92. containing_type=None,
  93. fields=[
  94. _descriptor.FieldDescriptor(
  95. name='height', full_name='mindinsight.Summary.Image.height', index=0,
  96. number=1, type=5, cpp_type=1, label=2,
  97. has_default_value=False, default_value=0,
  98. message_type=None, enum_type=None, containing_type=None,
  99. is_extension=False, extension_scope=None,
  100. options=None, file=DESCRIPTOR),
  101. _descriptor.FieldDescriptor(
  102. name='width', full_name='mindinsight.Summary.Image.width', index=1,
  103. number=2, type=5, cpp_type=1, label=2,
  104. has_default_value=False, default_value=0,
  105. message_type=None, enum_type=None, containing_type=None,
  106. is_extension=False, extension_scope=None,
  107. options=None, file=DESCRIPTOR),
  108. _descriptor.FieldDescriptor(
  109. name='colorspace', full_name='mindinsight.Summary.Image.colorspace', index=2,
  110. number=3, type=5, cpp_type=1, label=2,
  111. has_default_value=False, default_value=0,
  112. message_type=None, enum_type=None, containing_type=None,
  113. is_extension=False, extension_scope=None,
  114. options=None, file=DESCRIPTOR),
  115. _descriptor.FieldDescriptor(
  116. name='encoded_image', full_name='mindinsight.Summary.Image.encoded_image', index=3,
  117. number=4, type=12, cpp_type=9, label=2,
  118. has_default_value=False, default_value=_b(""),
  119. message_type=None, enum_type=None, containing_type=None,
  120. is_extension=False, extension_scope=None,
  121. options=None, file=DESCRIPTOR),
  122. ],
  123. extensions=[
  124. ],
  125. nested_types=[],
  126. enum_types=[
  127. ],
  128. options=None,
  129. is_extendable=False,
  130. syntax='proto2',
  131. extension_ranges=[],
  132. oneofs=[
  133. ],
  134. serialized_start=321,
  135. serialized_end=402,
  136. )
  137. _SUMMARY_HISTOGRAM_BUCKET = _descriptor.Descriptor(
  138. name='bucket',
  139. full_name='mindinsight.Summary.Histogram.bucket',
  140. filename=None,
  141. file=DESCRIPTOR,
  142. containing_type=None,
  143. fields=[
  144. _descriptor.FieldDescriptor(
  145. name='left', full_name='mindinsight.Summary.Histogram.bucket.left', index=0,
  146. number=1, type=1, cpp_type=5, label=2,
  147. has_default_value=False, default_value=float(0),
  148. message_type=None, enum_type=None, containing_type=None,
  149. is_extension=False, extension_scope=None,
  150. options=None, file=DESCRIPTOR),
  151. _descriptor.FieldDescriptor(
  152. name='width', full_name='mindinsight.Summary.Histogram.bucket.width', index=1,
  153. number=2, type=1, cpp_type=5, label=2,
  154. has_default_value=False, default_value=float(0),
  155. message_type=None, enum_type=None, containing_type=None,
  156. is_extension=False, extension_scope=None,
  157. options=None, file=DESCRIPTOR),
  158. _descriptor.FieldDescriptor(
  159. name='count', full_name='mindinsight.Summary.Histogram.bucket.count', index=2,
  160. number=3, type=3, cpp_type=2, label=2,
  161. has_default_value=False, default_value=0,
  162. message_type=None, enum_type=None, containing_type=None,
  163. is_extension=False, extension_scope=None,
  164. options=None, file=DESCRIPTOR),
  165. ],
  166. extensions=[
  167. ],
  168. nested_types=[],
  169. enum_types=[
  170. ],
  171. options=None,
  172. is_extendable=False,
  173. syntax='proto2',
  174. extension_ranges=[],
  175. oneofs=[
  176. ],
  177. serialized_start=593,
  178. serialized_end=645,
  179. )
  180. _SUMMARY_HISTOGRAM = _descriptor.Descriptor(
  181. name='Histogram',
  182. full_name='mindinsight.Summary.Histogram',
  183. filename=None,
  184. file=DESCRIPTOR,
  185. containing_type=None,
  186. fields=[
  187. _descriptor.FieldDescriptor(
  188. name='buckets', full_name='mindinsight.Summary.Histogram.buckets', index=0,
  189. number=1, type=11, cpp_type=10, label=3,
  190. has_default_value=False, default_value=[],
  191. message_type=None, enum_type=None, containing_type=None,
  192. is_extension=False, extension_scope=None,
  193. options=None, file=DESCRIPTOR),
  194. _descriptor.FieldDescriptor(
  195. name='nan_count', full_name='mindinsight.Summary.Histogram.nan_count', index=1,
  196. number=2, type=3, cpp_type=2, label=1,
  197. has_default_value=False, default_value=0,
  198. message_type=None, enum_type=None, containing_type=None,
  199. is_extension=False, extension_scope=None,
  200. options=None, file=DESCRIPTOR),
  201. _descriptor.FieldDescriptor(
  202. name='pos_inf_count', full_name='mindinsight.Summary.Histogram.pos_inf_count', index=2,
  203. number=3, type=3, cpp_type=2, label=1,
  204. has_default_value=False, default_value=0,
  205. message_type=None, enum_type=None, containing_type=None,
  206. is_extension=False, extension_scope=None,
  207. options=None, file=DESCRIPTOR),
  208. _descriptor.FieldDescriptor(
  209. name='neg_inf_count', full_name='mindinsight.Summary.Histogram.neg_inf_count', index=3,
  210. number=4, type=3, cpp_type=2, label=1,
  211. has_default_value=False, default_value=0,
  212. message_type=None, enum_type=None, containing_type=None,
  213. is_extension=False, extension_scope=None,
  214. options=None, file=DESCRIPTOR),
  215. _descriptor.FieldDescriptor(
  216. name='max', full_name='mindinsight.Summary.Histogram.max', index=4,
  217. number=5, type=1, cpp_type=5, label=1,
  218. has_default_value=False, default_value=float(0),
  219. message_type=None, enum_type=None, containing_type=None,
  220. is_extension=False, extension_scope=None,
  221. options=None, file=DESCRIPTOR),
  222. _descriptor.FieldDescriptor(
  223. name='min', full_name='mindinsight.Summary.Histogram.min', index=5,
  224. number=6, type=1, cpp_type=5, label=1,
  225. has_default_value=False, default_value=float(0),
  226. message_type=None, enum_type=None, containing_type=None,
  227. is_extension=False, extension_scope=None,
  228. options=None, file=DESCRIPTOR),
  229. _descriptor.FieldDescriptor(
  230. name='sum', full_name='mindinsight.Summary.Histogram.sum', index=6,
  231. number=7, type=1, cpp_type=5, label=1,
  232. has_default_value=False, default_value=float(0),
  233. message_type=None, enum_type=None, containing_type=None,
  234. is_extension=False, extension_scope=None,
  235. options=None, file=DESCRIPTOR),
  236. _descriptor.FieldDescriptor(
  237. name='count', full_name='mindinsight.Summary.Histogram.count', index=7,
  238. number=8, type=3, cpp_type=2, label=1,
  239. has_default_value=False, default_value=0,
  240. message_type=None, enum_type=None, containing_type=None,
  241. is_extension=False, extension_scope=None,
  242. options=None, file=DESCRIPTOR),
  243. ],
  244. extensions=[
  245. ],
  246. nested_types=[_SUMMARY_HISTOGRAM_BUCKET, ],
  247. enum_types=[
  248. ],
  249. options=None,
  250. is_extendable=False,
  251. syntax='proto2',
  252. extension_ranges=[],
  253. oneofs=[
  254. ],
  255. serialized_start=405,
  256. serialized_end=645,
  257. )
  258. _SUMMARY_VALUE = _descriptor.Descriptor(
  259. name='Value',
  260. full_name='mindinsight.Summary.Value',
  261. filename=None,
  262. file=DESCRIPTOR,
  263. containing_type=None,
  264. fields=[
  265. _descriptor.FieldDescriptor(
  266. name='tag', full_name='mindinsight.Summary.Value.tag', index=0,
  267. number=1, type=9, cpp_type=9, label=2,
  268. has_default_value=False, default_value=_b("").decode('utf-8'),
  269. message_type=None, enum_type=None, containing_type=None,
  270. is_extension=False, extension_scope=None,
  271. options=None, file=DESCRIPTOR),
  272. _descriptor.FieldDescriptor(
  273. name='scalar_value', full_name='mindinsight.Summary.Value.scalar_value', index=1,
  274. number=3, type=2, cpp_type=6, label=1,
  275. has_default_value=False, default_value=float(0),
  276. message_type=None, enum_type=None, containing_type=None,
  277. is_extension=False, extension_scope=None,
  278. options=None, file=DESCRIPTOR),
  279. _descriptor.FieldDescriptor(
  280. name='image', full_name='mindinsight.Summary.Value.image', index=2,
  281. number=4, type=11, cpp_type=10, label=1,
  282. has_default_value=False, default_value=None,
  283. message_type=None, enum_type=None, containing_type=None,
  284. is_extension=False, extension_scope=None,
  285. options=None, file=DESCRIPTOR),
  286. _descriptor.FieldDescriptor(
  287. name='tensor', full_name='mindinsight.Summary.Value.tensor', index=3,
  288. number=8, type=11, cpp_type=10, label=1,
  289. has_default_value=False, default_value=None,
  290. message_type=None, enum_type=None, containing_type=None,
  291. is_extension=False, extension_scope=None,
  292. options=None, file=DESCRIPTOR),
  293. _descriptor.FieldDescriptor(
  294. name='histogram', full_name='mindinsight.Summary.Value.histogram', index=4,
  295. number=9, type=11, cpp_type=10, label=1,
  296. has_default_value=False, default_value=None,
  297. message_type=None, enum_type=None, containing_type=None,
  298. is_extension=False, extension_scope=None,
  299. options=None, file=DESCRIPTOR),
  300. ],
  301. extensions=[
  302. ],
  303. nested_types=[],
  304. enum_types=[
  305. ],
  306. options=None,
  307. is_extendable=False,
  308. syntax='proto2',
  309. extension_ranges=[],
  310. oneofs=[
  311. _descriptor.OneofDescriptor(
  312. name='value', full_name='mindinsight.Summary.Value.value',
  313. index=0, containing_type=None, fields=[]),
  314. ],
  315. serialized_start=648,
  316. serialized_end=843,
  317. )
  318. _SUMMARY = _descriptor.Descriptor(
  319. name='Summary',
  320. full_name='mindinsight.Summary',
  321. filename=None,
  322. file=DESCRIPTOR,
  323. containing_type=None,
  324. fields=[
  325. _descriptor.FieldDescriptor(
  326. name='value', full_name='mindinsight.Summary.value', index=0,
  327. number=1, type=11, cpp_type=10, label=3,
  328. has_default_value=False, default_value=[],
  329. message_type=None, enum_type=None, containing_type=None,
  330. is_extension=False, extension_scope=None,
  331. options=None, file=DESCRIPTOR),
  332. ],
  333. extensions=[
  334. ],
  335. nested_types=[_SUMMARY_IMAGE, _SUMMARY_HISTOGRAM, _SUMMARY_VALUE, ],
  336. enum_types=[
  337. ],
  338. options=None,
  339. is_extendable=False,
  340. syntax='proto2',
  341. extension_ranges=[],
  342. oneofs=[
  343. ],
  344. serialized_start=267,
  345. serialized_end=843,
  346. )
  347. _EXPLAIN_INFERENCE = _descriptor.Descriptor(
  348. name='Inference',
  349. full_name='mindinsight.Explain.Inference',
  350. filename=None,
  351. file=DESCRIPTOR,
  352. containing_type=None,
  353. fields=[
  354. _descriptor.FieldDescriptor(
  355. name='ground_truth_prob', full_name='mindinsight.Explain.Inference.ground_truth_prob', index=0,
  356. number=1, type=2, cpp_type=6, label=3,
  357. has_default_value=False, default_value=[],
  358. message_type=None, enum_type=None, containing_type=None,
  359. is_extension=False, extension_scope=None,
  360. options=None, file=DESCRIPTOR),
  361. _descriptor.FieldDescriptor(
  362. name='predicted_label', full_name='mindinsight.Explain.Inference.predicted_label', index=1,
  363. number=2, type=5, cpp_type=1, label=3,
  364. has_default_value=False, default_value=[],
  365. message_type=None, enum_type=None, containing_type=None,
  366. is_extension=False, extension_scope=None,
  367. options=None, file=DESCRIPTOR),
  368. _descriptor.FieldDescriptor(
  369. name='predicted_prob', full_name='mindinsight.Explain.Inference.predicted_prob', index=2,
  370. number=3, type=2, cpp_type=6, label=3,
  371. has_default_value=False, default_value=[],
  372. message_type=None, enum_type=None, containing_type=None,
  373. is_extension=False, extension_scope=None,
  374. options=None, file=DESCRIPTOR),
  375. ],
  376. extensions=[
  377. ],
  378. nested_types=[],
  379. enum_types=[
  380. ],
  381. options=None,
  382. is_extendable=False,
  383. syntax='proto2',
  384. extension_ranges=[],
  385. oneofs=[
  386. ],
  387. serialized_start=1145,
  388. serialized_end=1232,
  389. )
  390. _EXPLAIN_EXPLANATION = _descriptor.Descriptor(
  391. name='Explanation',
  392. full_name='mindinsight.Explain.Explanation',
  393. filename=None,
  394. file=DESCRIPTOR,
  395. containing_type=None,
  396. fields=[
  397. _descriptor.FieldDescriptor(
  398. name='explain_method', full_name='mindinsight.Explain.Explanation.explain_method', index=0,
  399. number=1, type=9, cpp_type=9, label=1,
  400. has_default_value=False, default_value=_b("").decode('utf-8'),
  401. message_type=None, enum_type=None, containing_type=None,
  402. is_extension=False, extension_scope=None,
  403. options=None, file=DESCRIPTOR),
  404. _descriptor.FieldDescriptor(
  405. name='label', full_name='mindinsight.Explain.Explanation.label', index=1,
  406. number=2, type=5, cpp_type=1, label=1,
  407. has_default_value=False, default_value=0,
  408. message_type=None, enum_type=None, containing_type=None,
  409. is_extension=False, extension_scope=None,
  410. options=None, file=DESCRIPTOR),
  411. _descriptor.FieldDescriptor(
  412. name='hitmap', full_name='mindinsight.Explain.Explanation.hitmap', index=2,
  413. number=3, type=12, cpp_type=9, label=1,
  414. has_default_value=False, default_value=_b(""),
  415. message_type=None, enum_type=None, containing_type=None,
  416. is_extension=False, extension_scope=None,
  417. options=None, file=DESCRIPTOR),
  418. ],
  419. extensions=[
  420. ],
  421. nested_types=[],
  422. enum_types=[
  423. ],
  424. options=None,
  425. is_extendable=False,
  426. syntax='proto2',
  427. extension_ranges=[],
  428. oneofs=[
  429. ],
  430. serialized_start=1234,
  431. serialized_end=1302,
  432. )
  433. _EXPLAIN_BENCHMARK_TOTALSCORE = _descriptor.Descriptor(
  434. name='TotalScore',
  435. full_name='mindinsight.Explain.Benchmark.TotalScore',
  436. filename=None,
  437. file=DESCRIPTOR,
  438. containing_type=None,
  439. fields=[
  440. _descriptor.FieldDescriptor(
  441. name='benchmark_method', full_name='mindinsight.Explain.Benchmark.TotalScore.benchmark_method', index=0,
  442. number=1, type=9, cpp_type=9, label=1,
  443. has_default_value=False, default_value=_b("").decode('utf-8'),
  444. message_type=None, enum_type=None, containing_type=None,
  445. is_extension=False, extension_scope=None,
  446. options=None, file=DESCRIPTOR),
  447. _descriptor.FieldDescriptor(
  448. name='score', full_name='mindinsight.Explain.Benchmark.TotalScore.score', index=1,
  449. number=2, type=2, cpp_type=6, label=1,
  450. has_default_value=False, default_value=float(0),
  451. message_type=None, enum_type=None, containing_type=None,
  452. is_extension=False, extension_scope=None,
  453. options=None, file=DESCRIPTOR),
  454. ],
  455. extensions=[
  456. ],
  457. nested_types=[],
  458. enum_types=[
  459. ],
  460. options=None,
  461. is_extendable=False,
  462. syntax='proto2',
  463. extension_ranges=[],
  464. oneofs=[
  465. ],
  466. serialized_start=1470,
  467. serialized_end=1523,
  468. )
  469. _EXPLAIN_BENCHMARK_LABELSCORE = _descriptor.Descriptor(
  470. name='LabelScore',
  471. full_name='mindinsight.Explain.Benchmark.LabelScore',
  472. filename=None,
  473. file=DESCRIPTOR,
  474. containing_type=None,
  475. fields=[
  476. _descriptor.FieldDescriptor(
  477. name='score', full_name='mindinsight.Explain.Benchmark.LabelScore.score', index=0,
  478. number=1, type=2, cpp_type=6, label=3,
  479. has_default_value=False, default_value=[],
  480. message_type=None, enum_type=None, containing_type=None,
  481. is_extension=False, extension_scope=None,
  482. options=None, file=DESCRIPTOR),
  483. _descriptor.FieldDescriptor(
  484. name='benchmark_method', full_name='mindinsight.Explain.Benchmark.LabelScore.benchmark_method', index=1,
  485. number=2, type=9, cpp_type=9, label=1,
  486. has_default_value=False, default_value=_b("").decode('utf-8'),
  487. message_type=None, enum_type=None, containing_type=None,
  488. is_extension=False, extension_scope=None,
  489. options=None, file=DESCRIPTOR),
  490. ],
  491. extensions=[
  492. ],
  493. nested_types=[],
  494. enum_types=[
  495. ],
  496. options=None,
  497. is_extendable=False,
  498. syntax='proto2',
  499. extension_ranges=[],
  500. oneofs=[
  501. ],
  502. serialized_start=1525,
  503. serialized_end=1578,
  504. )
  505. _EXPLAIN_BENCHMARK = _descriptor.Descriptor(
  506. name='Benchmark',
  507. full_name='mindinsight.Explain.Benchmark',
  508. filename=None,
  509. file=DESCRIPTOR,
  510. containing_type=None,
  511. fields=[
  512. _descriptor.FieldDescriptor(
  513. name='explain_method', full_name='mindinsight.Explain.Benchmark.explain_method', index=0,
  514. number=1, type=9, cpp_type=9, label=1,
  515. has_default_value=False, default_value=_b("").decode('utf-8'),
  516. message_type=None, enum_type=None, containing_type=None,
  517. is_extension=False, extension_scope=None,
  518. options=None, file=DESCRIPTOR),
  519. _descriptor.FieldDescriptor(
  520. name='total_score', full_name='mindinsight.Explain.Benchmark.total_score', index=1,
  521. number=2, type=11, cpp_type=10, label=3,
  522. has_default_value=False, default_value=[],
  523. message_type=None, enum_type=None, containing_type=None,
  524. is_extension=False, extension_scope=None,
  525. options=None, file=DESCRIPTOR),
  526. _descriptor.FieldDescriptor(
  527. name='label_score', full_name='mindinsight.Explain.Benchmark.label_score', index=2,
  528. number=3, type=11, cpp_type=10, label=3,
  529. has_default_value=False, default_value=[],
  530. message_type=None, enum_type=None, containing_type=None,
  531. is_extension=False, extension_scope=None,
  532. options=None, file=DESCRIPTOR),
  533. ],
  534. extensions=[
  535. ],
  536. nested_types=[_EXPLAIN_BENCHMARK_TOTALSCORE, _EXPLAIN_BENCHMARK_LABELSCORE, ],
  537. enum_types=[
  538. ],
  539. options=None,
  540. is_extendable=False,
  541. syntax='proto2',
  542. extension_ranges=[],
  543. oneofs=[
  544. ],
  545. serialized_start=1305,
  546. serialized_end=1578,
  547. )
  548. _EXPLAIN_METADATA = _descriptor.Descriptor(
  549. name='Metadata',
  550. full_name='mindinsight.Explain.Metadata',
  551. filename=None,
  552. file=DESCRIPTOR,
  553. containing_type=None,
  554. fields=[
  555. _descriptor.FieldDescriptor(
  556. name='label', full_name='mindinsight.Explain.Metadata.label', index=0,
  557. number=1, type=9, cpp_type=9, label=3,
  558. has_default_value=False, default_value=[],
  559. message_type=None, enum_type=None, containing_type=None,
  560. is_extension=False, extension_scope=None,
  561. options=None, file=DESCRIPTOR),
  562. _descriptor.FieldDescriptor(
  563. name='explain_method', full_name='mindinsight.Explain.Metadata.explain_method', index=1,
  564. number=2, type=9, cpp_type=9, label=3,
  565. has_default_value=False, default_value=[],
  566. message_type=None, enum_type=None, containing_type=None,
  567. is_extension=False, extension_scope=None,
  568. options=None, file=DESCRIPTOR),
  569. _descriptor.FieldDescriptor(
  570. name='benchmark_method', full_name='mindinsight.Explain.Metadata.benchmark_method', index=2,
  571. number=3, type=9, cpp_type=9, label=3,
  572. has_default_value=False, default_value=[],
  573. message_type=None, enum_type=None, containing_type=None,
  574. is_extension=False, extension_scope=None,
  575. options=None, file=DESCRIPTOR),
  576. ],
  577. extensions=[
  578. ],
  579. nested_types=[],
  580. enum_types=[
  581. ],
  582. options=None,
  583. is_extendable=False,
  584. syntax='proto2',
  585. extension_ranges=[],
  586. oneofs=[
  587. ],
  588. serialized_start=1580,
  589. serialized_end=1655,
  590. )
  591. _EXPLAIN = _descriptor.Descriptor(
  592. name='Explain',
  593. full_name='mindinsight.Explain',
  594. filename=None,
  595. file=DESCRIPTOR,
  596. containing_type=None,
  597. fields=[
  598. _descriptor.FieldDescriptor(
  599. name='image_id', full_name='mindinsight.Explain.image_id', index=0,
  600. number=1, type=9, cpp_type=9, label=1,
  601. has_default_value=False, default_value=_b("").decode('utf-8'),
  602. message_type=None, enum_type=None, containing_type=None,
  603. is_extension=False, extension_scope=None,
  604. options=None, file=DESCRIPTOR),
  605. _descriptor.FieldDescriptor(
  606. name='image_data', full_name='mindinsight.Explain.image_data', index=1,
  607. number=2, type=12, cpp_type=9, label=1,
  608. has_default_value=False, default_value=_b(""),
  609. message_type=None, enum_type=None, containing_type=None,
  610. is_extension=False, extension_scope=None,
  611. options=None, file=DESCRIPTOR),
  612. _descriptor.FieldDescriptor(
  613. name='ground_truth_label', full_name='mindinsight.Explain.ground_truth_label', index=2,
  614. number=3, type=5, cpp_type=1, label=3,
  615. has_default_value=False, default_value=[],
  616. message_type=None, enum_type=None, containing_type=None,
  617. is_extension=False, extension_scope=None,
  618. options=None, file=DESCRIPTOR),
  619. _descriptor.FieldDescriptor(
  620. name='inference', full_name='mindinsight.Explain.inference', index=3,
  621. number=4, type=11, cpp_type=10, label=1,
  622. has_default_value=False, default_value=None,
  623. message_type=None, enum_type=None, containing_type=None,
  624. is_extension=False, extension_scope=None,
  625. options=None, file=DESCRIPTOR),
  626. _descriptor.FieldDescriptor(
  627. name='explanation', full_name='mindinsight.Explain.explanation', index=4,
  628. number=5, type=11, cpp_type=10, label=3,
  629. has_default_value=False, default_value=[],
  630. message_type=None, enum_type=None, containing_type=None,
  631. is_extension=False, extension_scope=None,
  632. options=None, file=DESCRIPTOR),
  633. _descriptor.FieldDescriptor(
  634. name='benchmark', full_name='mindinsight.Explain.benchmark', index=5,
  635. number=6, type=11, cpp_type=10, label=3,
  636. has_default_value=False, default_value=[],
  637. message_type=None, enum_type=None, containing_type=None,
  638. is_extension=False, extension_scope=None,
  639. options=None, file=DESCRIPTOR),
  640. _descriptor.FieldDescriptor(
  641. name='metadata', full_name='mindinsight.Explain.metadata', index=6,
  642. number=7, type=11, cpp_type=10, label=1,
  643. has_default_value=False, default_value=None,
  644. message_type=None, enum_type=None, containing_type=None,
  645. is_extension=False, extension_scope=None,
  646. options=None, file=DESCRIPTOR),
  647. _descriptor.FieldDescriptor(
  648. name='status', full_name='mindinsight.Explain.status', index=7,
  649. number=8, type=9, cpp_type=9, label=1,
  650. has_default_value=False, default_value=_b("").decode('utf-8'),
  651. message_type=None, enum_type=None, containing_type=None,
  652. is_extension=False, extension_scope=None,
  653. options=None, file=DESCRIPTOR),
  654. ],
  655. extensions=[
  656. ],
  657. nested_types=[_EXPLAIN_INFERENCE, _EXPLAIN_EXPLANATION, _EXPLAIN_BENCHMARK, _EXPLAIN_METADATA, ],
  658. enum_types=[
  659. ],
  660. options=None,
  661. is_extendable=False,
  662. syntax='proto2',
  663. extension_ranges=[],
  664. oneofs=[
  665. ],
  666. serialized_start=846,
  667. serialized_end=1655,
  668. )
  669. _EVENT.fields_by_name['graph_def'].message_type = mindinsight__anf__ir__pb2._GRAPHPROTO
  670. _EVENT.fields_by_name['summary'].message_type = _SUMMARY
  671. _EVENT.fields_by_name['explain'].message_type = _EXPLAIN
  672. _EVENT.oneofs_by_name['what'].fields.append(
  673. _EVENT.fields_by_name['version'])
  674. _EVENT.fields_by_name['version'].containing_oneof = _EVENT.oneofs_by_name['what']
  675. _EVENT.oneofs_by_name['what'].fields.append(
  676. _EVENT.fields_by_name['graph_def'])
  677. _EVENT.fields_by_name['graph_def'].containing_oneof = _EVENT.oneofs_by_name['what']
  678. _EVENT.oneofs_by_name['what'].fields.append(
  679. _EVENT.fields_by_name['summary'])
  680. _EVENT.fields_by_name['summary'].containing_oneof = _EVENT.oneofs_by_name['what']
  681. _EVENT.oneofs_by_name['what'].fields.append(
  682. _EVENT.fields_by_name['explain'])
  683. _EVENT.fields_by_name['explain'].containing_oneof = _EVENT.oneofs_by_name['what']
  684. _SUMMARY_IMAGE.containing_type = _SUMMARY
  685. _SUMMARY_HISTOGRAM_BUCKET.containing_type = _SUMMARY_HISTOGRAM
  686. _SUMMARY_HISTOGRAM.fields_by_name['buckets'].message_type = _SUMMARY_HISTOGRAM_BUCKET
  687. _SUMMARY_HISTOGRAM.containing_type = _SUMMARY
  688. _SUMMARY_VALUE.fields_by_name['image'].message_type = _SUMMARY_IMAGE
  689. _SUMMARY_VALUE.fields_by_name['tensor'].message_type = mindinsight__anf__ir__pb2._TENSORPROTO
  690. _SUMMARY_VALUE.fields_by_name['histogram'].message_type = _SUMMARY_HISTOGRAM
  691. _SUMMARY_VALUE.containing_type = _SUMMARY
  692. _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
  693. _SUMMARY_VALUE.fields_by_name['scalar_value'])
  694. _SUMMARY_VALUE.fields_by_name['scalar_value'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
  695. _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
  696. _SUMMARY_VALUE.fields_by_name['image'])
  697. _SUMMARY_VALUE.fields_by_name['image'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
  698. _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
  699. _SUMMARY_VALUE.fields_by_name['tensor'])
  700. _SUMMARY_VALUE.fields_by_name['tensor'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
  701. _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
  702. _SUMMARY_VALUE.fields_by_name['histogram'])
  703. _SUMMARY_VALUE.fields_by_name['histogram'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
  704. _SUMMARY.fields_by_name['value'].message_type = _SUMMARY_VALUE
  705. _EXPLAIN_INFERENCE.containing_type = _EXPLAIN
  706. _EXPLAIN_EXPLANATION.containing_type = _EXPLAIN
  707. _EXPLAIN_BENCHMARK_TOTALSCORE.containing_type = _EXPLAIN_BENCHMARK
  708. _EXPLAIN_BENCHMARK_LABELSCORE.containing_type = _EXPLAIN_BENCHMARK
  709. _EXPLAIN_BENCHMARK.fields_by_name['total_score'].message_type = _EXPLAIN_BENCHMARK_TOTALSCORE
  710. _EXPLAIN_BENCHMARK.fields_by_name['label_score'].message_type = _EXPLAIN_BENCHMARK_LABELSCORE
  711. _EXPLAIN_BENCHMARK.containing_type = _EXPLAIN
  712. _EXPLAIN_METADATA.containing_type = _EXPLAIN
  713. _EXPLAIN.fields_by_name['inference'].message_type = _EXPLAIN_INFERENCE
  714. _EXPLAIN.fields_by_name['explanation'].message_type = _EXPLAIN_EXPLANATION
  715. _EXPLAIN.fields_by_name['benchmark'].message_type = _EXPLAIN_BENCHMARK
  716. _EXPLAIN.fields_by_name['metadata'].message_type = _EXPLAIN_METADATA
  717. DESCRIPTOR.message_types_by_name['Event'] = _EVENT
  718. DESCRIPTOR.message_types_by_name['Summary'] = _SUMMARY
  719. DESCRIPTOR.message_types_by_name['Explain'] = _EXPLAIN
  720. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  721. Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), dict(
  722. DESCRIPTOR = _EVENT,
  723. __module__ = 'mindinsight_summary_pb2'
  724. # @@protoc_insertion_point(class_scope:mindinsight.Event)
  725. ))
  726. _sym_db.RegisterMessage(Event)
  727. Summary = _reflection.GeneratedProtocolMessageType('Summary', (_message.Message,), dict(
  728. Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), dict(
  729. DESCRIPTOR = _SUMMARY_IMAGE,
  730. __module__ = 'mindinsight_summary_pb2'
  731. # @@protoc_insertion_point(class_scope:mindinsight.Summary.Image)
  732. ))
  733. ,
  734. Histogram = _reflection.GeneratedProtocolMessageType('Histogram', (_message.Message,), dict(
  735. bucket = _reflection.GeneratedProtocolMessageType('bucket', (_message.Message,), dict(
  736. DESCRIPTOR = _SUMMARY_HISTOGRAM_BUCKET,
  737. __module__ = 'mindinsight_summary_pb2'
  738. # @@protoc_insertion_point(class_scope:mindinsight.Summary.Histogram.bucket)
  739. ))
  740. ,
  741. DESCRIPTOR = _SUMMARY_HISTOGRAM,
  742. __module__ = 'mindinsight_summary_pb2'
  743. # @@protoc_insertion_point(class_scope:mindinsight.Summary.Histogram)
  744. ))
  745. ,
  746. Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), dict(
  747. DESCRIPTOR = _SUMMARY_VALUE,
  748. __module__ = 'mindinsight_summary_pb2'
  749. # @@protoc_insertion_point(class_scope:mindinsight.Summary.Value)
  750. ))
  751. ,
  752. DESCRIPTOR = _SUMMARY,
  753. __module__ = 'mindinsight_summary_pb2'
  754. # @@protoc_insertion_point(class_scope:mindinsight.Summary)
  755. ))
  756. _sym_db.RegisterMessage(Summary)
  757. _sym_db.RegisterMessage(Summary.Image)
  758. _sym_db.RegisterMessage(Summary.Histogram)
  759. _sym_db.RegisterMessage(Summary.Histogram.bucket)
  760. _sym_db.RegisterMessage(Summary.Value)
  761. Explain = _reflection.GeneratedProtocolMessageType('Explain', (_message.Message,), dict(
  762. Inference = _reflection.GeneratedProtocolMessageType('Inference', (_message.Message,), dict(
  763. DESCRIPTOR = _EXPLAIN_INFERENCE,
  764. __module__ = 'mindinsight_summary_pb2'
  765. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Inference)
  766. ))
  767. ,
  768. Explanation = _reflection.GeneratedProtocolMessageType('Explanation', (_message.Message,), dict(
  769. DESCRIPTOR = _EXPLAIN_EXPLANATION,
  770. __module__ = 'mindinsight_summary_pb2'
  771. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Explanation)
  772. ))
  773. ,
  774. Benchmark = _reflection.GeneratedProtocolMessageType('Benchmark', (_message.Message,), dict(
  775. TotalScore = _reflection.GeneratedProtocolMessageType('TotalScore', (_message.Message,), dict(
  776. DESCRIPTOR = _EXPLAIN_BENCHMARK_TOTALSCORE,
  777. __module__ = 'mindinsight_summary_pb2'
  778. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Benchmark.TotalScore)
  779. ))
  780. ,
  781. LabelScore = _reflection.GeneratedProtocolMessageType('LabelScore', (_message.Message,), dict(
  782. DESCRIPTOR = _EXPLAIN_BENCHMARK_LABELSCORE,
  783. __module__ = 'mindinsight_summary_pb2'
  784. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Benchmark.LabelScore)
  785. ))
  786. ,
  787. DESCRIPTOR = _EXPLAIN_BENCHMARK,
  788. __module__ = 'mindinsight_summary_pb2'
  789. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Benchmark)
  790. ))
  791. ,
  792. Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), dict(
  793. DESCRIPTOR = _EXPLAIN_METADATA,
  794. __module__ = 'mindinsight_summary_pb2'
  795. # @@protoc_insertion_point(class_scope:mindinsight.Explain.Metadata)
  796. ))
  797. ,
  798. DESCRIPTOR = _EXPLAIN,
  799. __module__ = 'mindinsight_summary_pb2'
  800. # @@protoc_insertion_point(class_scope:mindinsight.Explain)
  801. ))
  802. _sym_db.RegisterMessage(Explain)
  803. _sym_db.RegisterMessage(Explain.Inference)
  804. _sym_db.RegisterMessage(Explain.Explanation)
  805. _sym_db.RegisterMessage(Explain.Benchmark)
  806. _sym_db.RegisterMessage(Explain.Benchmark.TotalScore)
  807. _sym_db.RegisterMessage(Explain.Benchmark.LabelScore)
  808. _sym_db.RegisterMessage(Explain.Metadata)
  809. DESCRIPTOR.has_options = True
  810. DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\370\001\001'))
  811. # @@protoc_insertion_point(module_scope)