|
- # -*- coding: utf-8 -*-
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: oneflow/customized/utils/attr_value.proto
- """Generated protocol buffer code."""
- from google.protobuf import descriptor as _descriptor
- from google.protobuf import message as _message
- from google.protobuf import reflection as _reflection
- from google.protobuf import symbol_database as _symbol_database
- # @@protoc_insertion_point(imports)
-
- _sym_db = _symbol_database.Default()
-
-
- from oneflow.customized.utils import tensor_pb2 as oneflow_dot_customized_dot_utils_dot_tensor__pb2
- from oneflow.customized.utils import types_pb2 as oneflow_dot_customized_dot_utils_dot_types__pb2
-
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='oneflow/customized/utils/attr_value.proto',
- package='oneflow',
- syntax='proto3',
- serialized_options=None,
- create_key=_descriptor._internal_create_key,
- 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'
- ,
- dependencies=[oneflow_dot_customized_dot_utils_dot_tensor__pb2.DESCRIPTOR,oneflow_dot_customized_dot_utils_dot_types__pb2.DESCRIPTOR,])
-
-
-
-
- _ATTRVALUE_LISTVALUE = _descriptor.Descriptor(
- name='ListValue',
- full_name='oneflow.AttrValue.ListValue',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='s', full_name='oneflow.AttrValue.ListValue.s', index=0,
- number=2, type=12, cpp_type=9, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='i', full_name='oneflow.AttrValue.ListValue.i', index=1,
- number=3, type=3, cpp_type=2, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='f', full_name='oneflow.AttrValue.ListValue.f', index=2,
- number=4, type=2, cpp_type=6, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='b', full_name='oneflow.AttrValue.ListValue.b', index=3,
- number=5, type=8, cpp_type=7, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='type', full_name='oneflow.AttrValue.ListValue.type', index=4,
- number=6, type=14, cpp_type=8, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=b'\020\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='shape', full_name='oneflow.AttrValue.ListValue.shape', index=5,
- number=7, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='tensor', full_name='oneflow.AttrValue.ListValue.tensor', index=6,
- number=8, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='func', full_name='oneflow.AttrValue.ListValue.func', index=7,
- number=9, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=425,
- serialized_end=646,
- )
-
- _ATTRVALUE = _descriptor.Descriptor(
- name='AttrValue',
- full_name='oneflow.AttrValue',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='s', full_name='oneflow.AttrValue.s', index=0,
- number=2, type=12, cpp_type=9, label=1,
- has_default_value=False, default_value=b"",
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='i', full_name='oneflow.AttrValue.i', index=1,
- number=3, type=3, cpp_type=2, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='f', full_name='oneflow.AttrValue.f', index=2,
- number=4, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='b', full_name='oneflow.AttrValue.b', index=3,
- number=5, type=8, cpp_type=7, label=1,
- has_default_value=False, default_value=False,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='type', full_name='oneflow.AttrValue.type', index=4,
- number=6, type=14, cpp_type=8, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='shape', full_name='oneflow.AttrValue.shape', index=5,
- number=7, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='tensor', full_name='oneflow.AttrValue.tensor', index=6,
- number=8, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='list', full_name='oneflow.AttrValue.list', index=7,
- number=1, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='func', full_name='oneflow.AttrValue.func', index=8,
- number=10, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='placeholder', full_name='oneflow.AttrValue.placeholder', index=9,
- number=9, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[_ATTRVALUE_LISTVALUE, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- _descriptor.OneofDescriptor(
- name='value', full_name='oneflow.AttrValue.value',
- index=0, containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[]),
- ],
- serialized_start=132,
- serialized_end=655,
- )
-
-
- _NAMEATTRLIST_ATTRENTRY = _descriptor.Descriptor(
- name='AttrEntry',
- full_name='oneflow.NameAttrList.AttrEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='oneflow.NameAttrList.AttrEntry.key', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='value', full_name='oneflow.NameAttrList.AttrEntry.value', index=1,
- number=2, type=11, cpp_type=10, label=1,
- has_default_value=False, default_value=None,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- serialized_options=b'8\001',
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=735,
- serialized_end=798,
- )
-
- _NAMEATTRLIST = _descriptor.Descriptor(
- name='NameAttrList',
- full_name='oneflow.NameAttrList',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='name', full_name='oneflow.NameAttrList.name', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=b"".decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- _descriptor.FieldDescriptor(
- name='attr', full_name='oneflow.NameAttrList.attr', index=1,
- number=2, type=11, cpp_type=10, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
- ],
- extensions=[
- ],
- nested_types=[_NAMEATTRLIST_ATTRENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=658,
- serialized_end=798,
- )
-
- _ATTRVALUE_LISTVALUE.fields_by_name['type'].enum_type = oneflow_dot_customized_dot_utils_dot_types__pb2._DATATYPE
- _ATTRVALUE_LISTVALUE.fields_by_name['shape'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORSHAPEPROTO
- _ATTRVALUE_LISTVALUE.fields_by_name['tensor'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORPROTO
- _ATTRVALUE_LISTVALUE.fields_by_name['func'].message_type = _NAMEATTRLIST
- _ATTRVALUE_LISTVALUE.containing_type = _ATTRVALUE
- _ATTRVALUE.fields_by_name['type'].enum_type = oneflow_dot_customized_dot_utils_dot_types__pb2._DATATYPE
- _ATTRVALUE.fields_by_name['shape'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORSHAPEPROTO
- _ATTRVALUE.fields_by_name['tensor'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORPROTO
- _ATTRVALUE.fields_by_name['list'].message_type = _ATTRVALUE_LISTVALUE
- _ATTRVALUE.fields_by_name['func'].message_type = _NAMEATTRLIST
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['s'])
- _ATTRVALUE.fields_by_name['s'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['i'])
- _ATTRVALUE.fields_by_name['i'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['f'])
- _ATTRVALUE.fields_by_name['f'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['b'])
- _ATTRVALUE.fields_by_name['b'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['type'])
- _ATTRVALUE.fields_by_name['type'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['shape'])
- _ATTRVALUE.fields_by_name['shape'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['tensor'])
- _ATTRVALUE.fields_by_name['tensor'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['list'])
- _ATTRVALUE.fields_by_name['list'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['func'])
- _ATTRVALUE.fields_by_name['func'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _ATTRVALUE.oneofs_by_name['value'].fields.append(
- _ATTRVALUE.fields_by_name['placeholder'])
- _ATTRVALUE.fields_by_name['placeholder'].containing_oneof = _ATTRVALUE.oneofs_by_name['value']
- _NAMEATTRLIST_ATTRENTRY.fields_by_name['value'].message_type = _ATTRVALUE
- _NAMEATTRLIST_ATTRENTRY.containing_type = _NAMEATTRLIST
- _NAMEATTRLIST.fields_by_name['attr'].message_type = _NAMEATTRLIST_ATTRENTRY
- DESCRIPTOR.message_types_by_name['AttrValue'] = _ATTRVALUE
- DESCRIPTOR.message_types_by_name['NameAttrList'] = _NAMEATTRLIST
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
- AttrValue = _reflection.GeneratedProtocolMessageType('AttrValue', (_message.Message,), {
-
- 'ListValue' : _reflection.GeneratedProtocolMessageType('ListValue', (_message.Message,), {
- 'DESCRIPTOR' : _ATTRVALUE_LISTVALUE,
- '__module__' : 'oneflow.customized.utils.attr_value_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.AttrValue.ListValue)
- })
- ,
- 'DESCRIPTOR' : _ATTRVALUE,
- '__module__' : 'oneflow.customized.utils.attr_value_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.AttrValue)
- })
- _sym_db.RegisterMessage(AttrValue)
- _sym_db.RegisterMessage(AttrValue.ListValue)
-
- NameAttrList = _reflection.GeneratedProtocolMessageType('NameAttrList', (_message.Message,), {
-
- 'AttrEntry' : _reflection.GeneratedProtocolMessageType('AttrEntry', (_message.Message,), {
- 'DESCRIPTOR' : _NAMEATTRLIST_ATTRENTRY,
- '__module__' : 'oneflow.customized.utils.attr_value_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.NameAttrList.AttrEntry)
- })
- ,
- 'DESCRIPTOR' : _NAMEATTRLIST,
- '__module__' : 'oneflow.customized.utils.attr_value_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.NameAttrList)
- })
- _sym_db.RegisterMessage(NameAttrList)
- _sym_db.RegisterMessage(NameAttrList.AttrEntry)
-
-
- _ATTRVALUE_LISTVALUE.fields_by_name['i']._options = None
- _ATTRVALUE_LISTVALUE.fields_by_name['f']._options = None
- _ATTRVALUE_LISTVALUE.fields_by_name['b']._options = None
- _ATTRVALUE_LISTVALUE.fields_by_name['type']._options = None
- _NAMEATTRLIST_ATTRENTRY._options = None
- # @@protoc_insertion_point(module_scope)
|