|
- # -*- coding: utf-8 -*-
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: oneflow/customized/utils/node_def.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 attr_value_pb2 as oneflow_dot_customized_dot_utils_dot_attr__value__pb2
-
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='oneflow/customized/utils/node_def.proto',
- package='oneflow',
- syntax='proto3',
- serialized_options=None,
- create_key=_descriptor._internal_create_key,
- serialized_pb=b'\n\'oneflow/customized/utils/node_def.proto\x12\x07oneflow\x1a)oneflow/customized/utils/attr_value.proto\"\xad\x01\n\x07NodeDef\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02op\x18\x02 \x01(\t\x12\r\n\x05input\x18\x03 \x03(\t\x12\x0e\n\x06\x64\x65vice\x18\x04 \x01(\t\x12(\n\x04\x61ttr\x18\x05 \x03(\x0b\x32\x1a.oneflow.NodeDef.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_attr__value__pb2.DESCRIPTOR,])
-
-
-
-
- _NODEDEF_ATTRENTRY = _descriptor.Descriptor(
- name='AttrEntry',
- full_name='oneflow.NodeDef.AttrEntry',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='key', full_name='oneflow.NodeDef.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.NodeDef.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=206,
- serialized_end=269,
- )
-
- _NODEDEF = _descriptor.Descriptor(
- name='NodeDef',
- full_name='oneflow.NodeDef',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- create_key=_descriptor._internal_create_key,
- fields=[
- _descriptor.FieldDescriptor(
- name='name', full_name='oneflow.NodeDef.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='op', full_name='oneflow.NodeDef.op', index=1,
- number=2, 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='input', full_name='oneflow.NodeDef.input', index=2,
- number=3, type=9, 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='device', full_name='oneflow.NodeDef.device', index=3,
- number=4, 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.NodeDef.attr', index=4,
- number=5, 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=[_NODEDEF_ATTRENTRY, ],
- enum_types=[
- ],
- serialized_options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=96,
- serialized_end=269,
- )
-
- _NODEDEF_ATTRENTRY.fields_by_name['value'].message_type = oneflow_dot_customized_dot_utils_dot_attr__value__pb2._ATTRVALUE
- _NODEDEF_ATTRENTRY.containing_type = _NODEDEF
- _NODEDEF.fields_by_name['attr'].message_type = _NODEDEF_ATTRENTRY
- DESCRIPTOR.message_types_by_name['NodeDef'] = _NODEDEF
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
- NodeDef = _reflection.GeneratedProtocolMessageType('NodeDef', (_message.Message,), {
-
- 'AttrEntry' : _reflection.GeneratedProtocolMessageType('AttrEntry', (_message.Message,), {
- 'DESCRIPTOR' : _NODEDEF_ATTRENTRY,
- '__module__' : 'oneflow.customized.utils.node_def_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.NodeDef.AttrEntry)
- })
- ,
- 'DESCRIPTOR' : _NODEDEF,
- '__module__' : 'oneflow.customized.utils.node_def_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.NodeDef)
- })
- _sym_db.RegisterMessage(NodeDef)
- _sym_db.RegisterMessage(NodeDef.AttrEntry)
-
-
- _NODEDEF_ATTRENTRY._options = None
- # @@protoc_insertion_point(module_scope)
|