|
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: oneflow/customized/utils/event.proto
-
- import sys
- _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
- 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 summary_pb2 as oneflow_dot_customized_dot_utils_dot_summary__pb2
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='oneflow/customized/utils/event.proto',
- package='oneflow',
- syntax='proto2',
- serialized_pb=_b('\n$oneflow/customized/utils/event.proto\x12\x07oneflow\x1a&oneflow/customized/utils/summary.proto\"\xae\x01\n\x05\x45vent\x12\x11\n\twall_time\x18\x01 \x02(\x01\x12\x0c\n\x04step\x18\x02 \x01(\x03\x12\x16\n\x0c\x66ile_version\x18\x03 \x01(\tH\x00\x12\x13\n\tgraph_def\x18\x04 \x01(\x0cH\x00\x12#\n\x07summary\x18\x05 \x01(\x0b\x32\x10.oneflow.SummaryH\x00\x12*\n\x0blog_message\x18\x06 \x01(\x0b\x32\x13.oneflow.LogMessageH\x00\x42\x06\n\x04what\"\x96\x01\n\nLogMessage\x12(\n\x05level\x18\x01 \x02(\x0e\x32\x19.oneflow.LogMessage.Level\x12\x0f\n\x07message\x18\x02 \x02(\t\"M\n\x05Level\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tDEBUGGING\x10\n\x12\x08\n\x04INFO\x10\x14\x12\x08\n\x04WARN\x10\x1e\x12\t\n\x05\x45RROR\x10(\x12\t\n\x05\x46\x41TAL\x10\x32')
- ,
- dependencies=[oneflow_dot_customized_dot_utils_dot_summary__pb2.DESCRIPTOR,])
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-
-
- _LOGMESSAGE_LEVEL = _descriptor.EnumDescriptor(
- name='Level',
- full_name='oneflow.LogMessage.Level',
- filename=None,
- file=DESCRIPTOR,
- values=[
- _descriptor.EnumValueDescriptor(
- name='UNKNOWN', index=0, number=0,
- options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='DEBUGGING', index=1, number=10,
- options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='INFO', index=2, number=20,
- options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='WARN', index=3, number=30,
- options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='ERROR', index=4, number=40,
- options=None,
- type=None),
- _descriptor.EnumValueDescriptor(
- name='FATAL', index=5, number=50,
- options=None,
- type=None),
- ],
- containing_type=None,
- options=None,
- serialized_start=340,
- serialized_end=417,
- )
- _sym_db.RegisterEnumDescriptor(_LOGMESSAGE_LEVEL)
-
-
- _EVENT = _descriptor.Descriptor(
- name='Event',
- full_name='oneflow.Event',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='wall_time', full_name='oneflow.Event.wall_time', index=0,
- number=1, type=1, cpp_type=5, label=2,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='step', full_name='oneflow.Event.step', index=1,
- number=2, 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='file_version', full_name='oneflow.Event.file_version', index=2,
- number=3, 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='graph_def', full_name='oneflow.Event.graph_def', index=3,
- number=4, 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='summary', full_name='oneflow.Event.summary', index=4,
- number=5, 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='log_message', full_name='oneflow.Event.log_message', index=5,
- number=6, 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,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- _descriptor.OneofDescriptor(
- name='what', full_name='oneflow.Event.what',
- index=0, containing_type=None, fields=[]),
- ],
- serialized_start=90,
- serialized_end=264,
- )
-
-
- _LOGMESSAGE = _descriptor.Descriptor(
- name='LogMessage',
- full_name='oneflow.LogMessage',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='level', full_name='oneflow.LogMessage.level', index=0,
- number=1, type=14, cpp_type=8, label=2,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='message', full_name='oneflow.LogMessage.message', index=1,
- number=2, type=9, cpp_type=9, label=2,
- 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,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- _LOGMESSAGE_LEVEL,
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=267,
- serialized_end=417,
- )
-
- _EVENT.fields_by_name['summary'].message_type = oneflow_dot_customized_dot_utils_dot_summary__pb2._SUMMARY
- _EVENT.fields_by_name['log_message'].message_type = _LOGMESSAGE
- _EVENT.oneofs_by_name['what'].fields.append(
- _EVENT.fields_by_name['file_version'])
- _EVENT.fields_by_name['file_version'].containing_oneof = _EVENT.oneofs_by_name['what']
- _EVENT.oneofs_by_name['what'].fields.append(
- _EVENT.fields_by_name['graph_def'])
- _EVENT.fields_by_name['graph_def'].containing_oneof = _EVENT.oneofs_by_name['what']
- _EVENT.oneofs_by_name['what'].fields.append(
- _EVENT.fields_by_name['summary'])
- _EVENT.fields_by_name['summary'].containing_oneof = _EVENT.oneofs_by_name['what']
- _EVENT.oneofs_by_name['what'].fields.append(
- _EVENT.fields_by_name['log_message'])
- _EVENT.fields_by_name['log_message'].containing_oneof = _EVENT.oneofs_by_name['what']
- _LOGMESSAGE.fields_by_name['level'].enum_type = _LOGMESSAGE_LEVEL
- _LOGMESSAGE_LEVEL.containing_type = _LOGMESSAGE
- DESCRIPTOR.message_types_by_name['Event'] = _EVENT
- DESCRIPTOR.message_types_by_name['LogMessage'] = _LOGMESSAGE
-
- Event = _reflection.GeneratedProtocolMessageType('Event', (_message.Message,), dict(
- DESCRIPTOR = _EVENT,
- __module__ = 'oneflow.customized.utils.event_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.Event)
- ))
- _sym_db.RegisterMessage(Event)
-
- LogMessage = _reflection.GeneratedProtocolMessageType('LogMessage', (_message.Message,), dict(
- DESCRIPTOR = _LOGMESSAGE,
- __module__ = 'oneflow.customized.utils.event_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.LogMessage)
- ))
- _sym_db.RegisterMessage(LogMessage)
-
-
- # @@protoc_insertion_point(module_scope)
|