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.

attr_value_pb2.py 18 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: oneflow/customized/utils/attr_value.proto
  4. """Generated protocol buffer code."""
  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. # @@protoc_insertion_point(imports)
  10. _sym_db = _symbol_database.Default()
  11. from oneflow.customized.utils import tensor_pb2 as oneflow_dot_customized_dot_utils_dot_tensor__pb2
  12. from oneflow.customized.utils import types_pb2 as oneflow_dot_customized_dot_utils_dot_types__pb2
  13. DESCRIPTOR = _descriptor.FileDescriptor(
  14. name='oneflow/customized/utils/attr_value.proto',
  15. package='oneflow',
  16. syntax='proto3',
  17. serialized_options=None,
  18. create_key=_descriptor._internal_create_key,
  19. serialized_pb=b'\n)oneflow/customized/utils/attr_value.proto\x12\x07oneflow\x1a%oneflow/customized/utils/tensor.proto\x1a$oneflow/customized/utils/types.proto\"\x8b\x04\n\tAttrValue\x12\x0b\n\x01s\x18\x02 \x01(\x0cH\x00\x12\x0b\n\x01i\x18\x03 \x01(\x03H\x00\x12\x0b\n\x01\x66\x18\x04 \x01(\x02H\x00\x12\x0b\n\x01\x62\x18\x05 \x01(\x08H\x00\x12!\n\x04type\x18\x06 \x01(\x0e\x32\x11.oneflow.DataTypeH\x00\x12*\n\x05shape\x18\x07 \x01(\x0b\x32\x19.oneflow.TensorShapeProtoH\x00\x12&\n\x06tensor\x18\x08 \x01(\x0b\x32\x14.oneflow.TensorProtoH\x00\x12,\n\x04list\x18\x01 \x01(\x0b\x32\x1c.oneflow.AttrValue.ListValueH\x00\x12%\n\x04\x66unc\x18\n \x01(\x0b\x32\x15.oneflow.NameAttrListH\x00\x12\x15\n\x0bplaceholder\x18\t \x01(\tH\x00\x1a\xdd\x01\n\tListValue\x12\t\n\x01s\x18\x02 \x03(\x0c\x12\r\n\x01i\x18\x03 \x03(\x03\x42\x02\x10\x01\x12\r\n\x01\x66\x18\x04 \x03(\x02\x42\x02\x10\x01\x12\r\n\x01\x62\x18\x05 \x03(\x08\x42\x02\x10\x01\x12#\n\x04type\x18\x06 \x03(\x0e\x32\x11.oneflow.DataTypeB\x02\x10\x01\x12(\n\x05shape\x18\x07 \x03(\x0b\x32\x19.oneflow.TensorShapeProto\x12$\n\x06tensor\x18\x08 \x03(\x0b\x32\x14.oneflow.TensorProto\x12#\n\x04\x66unc\x18\t \x03(\x0b\x32\x15.oneflow.NameAttrListB\x07\n\x05value\"\x8c\x01\n\x0cNameAttrList\x12\x0c\n\x04name\x18\x01 \x01(\t\x12-\n\x04\x61ttr\x18\x02 \x03(\x0b\x32\x1f.oneflow.NameAttrList.AttrEntry\x1a?\n\tAttrEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.oneflow.AttrValue:\x02\x38\x01\x62\x06proto3'
  20. ,
  21. dependencies=[oneflow_dot_customized_dot_utils_dot_tensor__pb2.DESCRIPTOR,oneflow_dot_customized_dot_utils_dot_types__pb2.DESCRIPTOR,])
  22. _ATTRVALUE_LISTVALUE = _descriptor.Descriptor(
  23. name='ListValue',
  24. full_name='oneflow.AttrValue.ListValue',
  25. filename=None,
  26. file=DESCRIPTOR,
  27. containing_type=None,
  28. create_key=_descriptor._internal_create_key,
  29. fields=[
  30. _descriptor.FieldDescriptor(
  31. name='s', full_name='oneflow.AttrValue.ListValue.s', index=0,
  32. number=2, type=12, cpp_type=9, label=3,
  33. has_default_value=False, default_value=[],
  34. message_type=None, enum_type=None, containing_type=None,
  35. is_extension=False, extension_scope=None,
  36. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  37. _descriptor.FieldDescriptor(
  38. name='i', full_name='oneflow.AttrValue.ListValue.i', index=1,
  39. number=3, type=3, cpp_type=2, label=3,
  40. has_default_value=False, default_value=[],
  41. message_type=None, enum_type=None, containing_type=None,
  42. is_extension=False, extension_scope=None,
  43. serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  44. _descriptor.FieldDescriptor(
  45. name='f', full_name='oneflow.AttrValue.ListValue.f', index=2,
  46. number=4, type=2, cpp_type=6, label=3,
  47. has_default_value=False, default_value=[],
  48. message_type=None, enum_type=None, containing_type=None,
  49. is_extension=False, extension_scope=None,
  50. serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  51. _descriptor.FieldDescriptor(
  52. name='b', full_name='oneflow.AttrValue.ListValue.b', index=3,
  53. number=5, type=8, cpp_type=7, label=3,
  54. has_default_value=False, default_value=[],
  55. message_type=None, enum_type=None, containing_type=None,
  56. is_extension=False, extension_scope=None,
  57. serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  58. _descriptor.FieldDescriptor(
  59. name='type', full_name='oneflow.AttrValue.ListValue.type', index=4,
  60. number=6, type=14, cpp_type=8, label=3,
  61. has_default_value=False, default_value=[],
  62. message_type=None, enum_type=None, containing_type=None,
  63. is_extension=False, extension_scope=None,
  64. serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  65. _descriptor.FieldDescriptor(
  66. name='shape', full_name='oneflow.AttrValue.ListValue.shape', index=5,
  67. number=7, type=11, cpp_type=10, label=3,
  68. has_default_value=False, default_value=[],
  69. message_type=None, enum_type=None, containing_type=None,
  70. is_extension=False, extension_scope=None,
  71. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  72. _descriptor.FieldDescriptor(
  73. name='tensor', full_name='oneflow.AttrValue.ListValue.tensor', index=6,
  74. number=8, type=11, cpp_type=10, label=3,
  75. has_default_value=False, default_value=[],
  76. message_type=None, enum_type=None, containing_type=None,
  77. is_extension=False, extension_scope=None,
  78. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  79. _descriptor.FieldDescriptor(
  80. name='func', full_name='oneflow.AttrValue.ListValue.func', index=7,
  81. number=9, type=11, cpp_type=10, label=3,
  82. has_default_value=False, default_value=[],
  83. message_type=None, enum_type=None, containing_type=None,
  84. is_extension=False, extension_scope=None,
  85. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  86. ],
  87. extensions=[
  88. ],
  89. nested_types=[],
  90. enum_types=[
  91. ],
  92. serialized_options=None,
  93. is_extendable=False,
  94. syntax='proto3',
  95. extension_ranges=[],
  96. oneofs=[
  97. ],
  98. serialized_start=425,
  99. serialized_end=646,
  100. )
  101. _ATTRVALUE = _descriptor.Descriptor(
  102. name='AttrValue',
  103. full_name='oneflow.AttrValue',
  104. filename=None,
  105. file=DESCRIPTOR,
  106. containing_type=None,
  107. create_key=_descriptor._internal_create_key,
  108. fields=[
  109. _descriptor.FieldDescriptor(
  110. name='s', full_name='oneflow.AttrValue.s', index=0,
  111. number=2, type=12, cpp_type=9, label=1,
  112. has_default_value=False, default_value=b"",
  113. message_type=None, enum_type=None, containing_type=None,
  114. is_extension=False, extension_scope=None,
  115. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  116. _descriptor.FieldDescriptor(
  117. name='i', full_name='oneflow.AttrValue.i', index=1,
  118. number=3, type=3, cpp_type=2, label=1,
  119. has_default_value=False, default_value=0,
  120. message_type=None, enum_type=None, containing_type=None,
  121. is_extension=False, extension_scope=None,
  122. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  123. _descriptor.FieldDescriptor(
  124. name='f', full_name='oneflow.AttrValue.f', index=2,
  125. number=4, type=2, cpp_type=6, label=1,
  126. has_default_value=False, default_value=float(0),
  127. message_type=None, enum_type=None, containing_type=None,
  128. is_extension=False, extension_scope=None,
  129. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  130. _descriptor.FieldDescriptor(
  131. name='b', full_name='oneflow.AttrValue.b', index=3,
  132. number=5, type=8, cpp_type=7, label=1,
  133. has_default_value=False, default_value=False,
  134. message_type=None, enum_type=None, containing_type=None,
  135. is_extension=False, extension_scope=None,
  136. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  137. _descriptor.FieldDescriptor(
  138. name='type', full_name='oneflow.AttrValue.type', index=4,
  139. number=6, type=14, cpp_type=8, label=1,
  140. has_default_value=False, default_value=0,
  141. message_type=None, enum_type=None, containing_type=None,
  142. is_extension=False, extension_scope=None,
  143. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  144. _descriptor.FieldDescriptor(
  145. name='shape', full_name='oneflow.AttrValue.shape', index=5,
  146. number=7, type=11, cpp_type=10, label=1,
  147. has_default_value=False, default_value=None,
  148. message_type=None, enum_type=None, containing_type=None,
  149. is_extension=False, extension_scope=None,
  150. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  151. _descriptor.FieldDescriptor(
  152. name='tensor', full_name='oneflow.AttrValue.tensor', index=6,
  153. number=8, type=11, cpp_type=10, label=1,
  154. has_default_value=False, default_value=None,
  155. message_type=None, enum_type=None, containing_type=None,
  156. is_extension=False, extension_scope=None,
  157. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  158. _descriptor.FieldDescriptor(
  159. name='list', full_name='oneflow.AttrValue.list', index=7,
  160. number=1, type=11, cpp_type=10, label=1,
  161. has_default_value=False, default_value=None,
  162. message_type=None, enum_type=None, containing_type=None,
  163. is_extension=False, extension_scope=None,
  164. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  165. _descriptor.FieldDescriptor(
  166. name='func', full_name='oneflow.AttrValue.func', index=8,
  167. number=10, type=11, cpp_type=10, label=1,
  168. has_default_value=False, default_value=None,
  169. message_type=None, enum_type=None, containing_type=None,
  170. is_extension=False, extension_scope=None,
  171. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  172. _descriptor.FieldDescriptor(
  173. name='placeholder', full_name='oneflow.AttrValue.placeholder', index=9,
  174. number=9, type=9, cpp_type=9, label=1,
  175. has_default_value=False, default_value=b"".decode('utf-8'),
  176. message_type=None, enum_type=None, containing_type=None,
  177. is_extension=False, extension_scope=None,
  178. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  179. ],
  180. extensions=[
  181. ],
  182. nested_types=[_ATTRVALUE_LISTVALUE, ],
  183. enum_types=[
  184. ],
  185. serialized_options=None,
  186. is_extendable=False,
  187. syntax='proto3',
  188. extension_ranges=[],
  189. oneofs=[
  190. _descriptor.OneofDescriptor(
  191. name='value', full_name='oneflow.AttrValue.value',
  192. index=0, containing_type=None,
  193. create_key=_descriptor._internal_create_key,
  194. fields=[]),
  195. ],
  196. serialized_start=132,
  197. serialized_end=655,
  198. )
  199. _NAMEATTRLIST_ATTRENTRY = _descriptor.Descriptor(
  200. name='AttrEntry',
  201. full_name='oneflow.NameAttrList.AttrEntry',
  202. filename=None,
  203. file=DESCRIPTOR,
  204. containing_type=None,
  205. create_key=_descriptor._internal_create_key,
  206. fields=[
  207. _descriptor.FieldDescriptor(
  208. name='key', full_name='oneflow.NameAttrList.AttrEntry.key', index=0,
  209. number=1, type=9, cpp_type=9, label=1,
  210. has_default_value=False, default_value=b"".decode('utf-8'),
  211. message_type=None, enum_type=None, containing_type=None,
  212. is_extension=False, extension_scope=None,
  213. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  214. _descriptor.FieldDescriptor(
  215. name='value', full_name='oneflow.NameAttrList.AttrEntry.value', index=1,
  216. number=2, type=11, cpp_type=10, label=1,
  217. has_default_value=False, default_value=None,
  218. message_type=None, enum_type=None, containing_type=None,
  219. is_extension=False, extension_scope=None,
  220. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  221. ],
  222. extensions=[
  223. ],
  224. nested_types=[],
  225. enum_types=[
  226. ],
  227. serialized_options=b'8\001',
  228. is_extendable=False,
  229. syntax='proto3',
  230. extension_ranges=[],
  231. oneofs=[
  232. ],
  233. serialized_start=735,
  234. serialized_end=798,
  235. )
  236. _NAMEATTRLIST = _descriptor.Descriptor(
  237. name='NameAttrList',
  238. full_name='oneflow.NameAttrList',
  239. filename=None,
  240. file=DESCRIPTOR,
  241. containing_type=None,
  242. create_key=_descriptor._internal_create_key,
  243. fields=[
  244. _descriptor.FieldDescriptor(
  245. name='name', full_name='oneflow.NameAttrList.name', index=0,
  246. number=1, type=9, cpp_type=9, label=1,
  247. has_default_value=False, default_value=b"".decode('utf-8'),
  248. message_type=None, enum_type=None, containing_type=None,
  249. is_extension=False, extension_scope=None,
  250. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  251. _descriptor.FieldDescriptor(
  252. name='attr', full_name='oneflow.NameAttrList.attr', index=1,
  253. number=2, type=11, cpp_type=10, label=3,
  254. has_default_value=False, default_value=[],
  255. message_type=None, enum_type=None, containing_type=None,
  256. is_extension=False, extension_scope=None,
  257. serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
  258. ],
  259. extensions=[
  260. ],
  261. nested_types=[_NAMEATTRLIST_ATTRENTRY, ],
  262. enum_types=[
  263. ],
  264. serialized_options=None,
  265. is_extendable=False,
  266. syntax='proto3',
  267. extension_ranges=[],
  268. oneofs=[
  269. ],
  270. serialized_start=658,
  271. serialized_end=798,
  272. )
  273. _ATTRVALUE_LISTVALUE.fields_by_name['type'].enum_type = oneflow_dot_customized_dot_utils_dot_types__pb2._DATATYPE
  274. _ATTRVALUE_LISTVALUE.fields_by_name['shape'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORSHAPEPROTO
  275. _ATTRVALUE_LISTVALUE.fields_by_name['tensor'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORPROTO
  276. _ATTRVALUE_LISTVALUE.fields_by_name['func'].message_type = _NAMEATTRLIST
  277. _ATTRVALUE_LISTVALUE.containing_type = _ATTRVALUE
  278. _ATTRVALUE.fields_by_name['type'].enum_type = oneflow_dot_customized_dot_utils_dot_types__pb2._DATATYPE
  279. _ATTRVALUE.fields_by_name['shape'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORSHAPEPROTO
  280. _ATTRVALUE.fields_by_name['tensor'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORPROTO
  281. _ATTRVALUE.fields_by_name['list'].message_type = _ATTRVALUE_LISTVALUE
  282. _ATTRVALUE.fields_by_name['func'].message_type = _NAMEATTRLIST
  283. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  284. _ATTRVALUE.fields_by_name['s'])
  285. _ATTRVALUE.fields_by_name['s'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  286. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  287. _ATTRVALUE.fields_by_name['i'])
  288. _ATTRVALUE.fields_by_name['i'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  289. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  290. _ATTRVALUE.fields_by_name['f'])
  291. _ATTRVALUE.fields_by_name['f'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  292. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  293. _ATTRVALUE.fields_by_name['b'])
  294. _ATTRVALUE.fields_by_name['b'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  295. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  296. _ATTRVALUE.fields_by_name['type'])
  297. _ATTRVALUE.fields_by_name['type'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  298. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  299. _ATTRVALUE.fields_by_name['shape'])
  300. _ATTRVALUE.fields_by_name['shape'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  301. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  302. _ATTRVALUE.fields_by_name['tensor'])
  303. _ATTRVALUE.fields_by_name['tensor'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  304. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  305. _ATTRVALUE.fields_by_name['list'])
  306. _ATTRVALUE.fields_by_name['list'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  307. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  308. _ATTRVALUE.fields_by_name['func'])
  309. _ATTRVALUE.fields_by_name['func'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  310. _ATTRVALUE.oneofs_by_name['value'].fields.append(
  311. _ATTRVALUE.fields_by_name['placeholder'])
  312. _ATTRVALUE.fields_by_name['placeholder'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
  313. _NAMEATTRLIST_ATTRENTRY.fields_by_name['value'].message_type = _ATTRVALUE
  314. _NAMEATTRLIST_ATTRENTRY.containing_type = _NAMEATTRLIST
  315. _NAMEATTRLIST.fields_by_name['attr'].message_type = _NAMEATTRLIST_ATTRENTRY
  316. DESCRIPTOR.message_types_by_name['AttrValue'] = _ATTRVALUE
  317. DESCRIPTOR.message_types_by_name['NameAttrList'] = _NAMEATTRLIST
  318. _sym_db.RegisterFileDescriptor(DESCRIPTOR)
  319. AttrValue = _reflection.GeneratedProtocolMessageType('AttrValue', (_message.Message,), {
  320. 'ListValue' : _reflection.GeneratedProtocolMessageType('ListValue', (_message.Message,), {
  321. 'DESCRIPTOR' : _ATTRVALUE_LISTVALUE,
  322. '__module__' : 'oneflow.customized.utils.attr_value_pb2'
  323. # @@protoc_insertion_point(class_scope:oneflow.AttrValue.ListValue)
  324. })
  325. ,
  326. 'DESCRIPTOR' : _ATTRVALUE,
  327. '__module__' : 'oneflow.customized.utils.attr_value_pb2'
  328. # @@protoc_insertion_point(class_scope:oneflow.AttrValue)
  329. })
  330. _sym_db.RegisterMessage(AttrValue)
  331. _sym_db.RegisterMessage(AttrValue.ListValue)
  332. NameAttrList = _reflection.GeneratedProtocolMessageType('NameAttrList', (_message.Message,), {
  333. 'AttrEntry' : _reflection.GeneratedProtocolMessageType('AttrEntry', (_message.Message,), {
  334. 'DESCRIPTOR' : _NAMEATTRLIST_ATTRENTRY,
  335. '__module__' : 'oneflow.customized.utils.attr_value_pb2'
  336. # @@protoc_insertion_point(class_scope:oneflow.NameAttrList.AttrEntry)
  337. })
  338. ,
  339. 'DESCRIPTOR' : _NAMEATTRLIST,
  340. '__module__' : 'oneflow.customized.utils.attr_value_pb2'
  341. # @@protoc_insertion_point(class_scope:oneflow.NameAttrList)
  342. })
  343. _sym_db.RegisterMessage(NameAttrList)
  344. _sym_db.RegisterMessage(NameAttrList.AttrEntry)
  345. _ATTRVALUE_LISTVALUE.fields_by_name['i']._options = None
  346. _ATTRVALUE_LISTVALUE.fields_by_name['f']._options = None
  347. _ATTRVALUE_LISTVALUE.fields_by_name['b']._options = None
  348. _ATTRVALUE_LISTVALUE.fields_by_name['type']._options = None
  349. _NAMEATTRLIST_ATTRENTRY._options = None
  350. # @@protoc_insertion_point(module_scope)

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能