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