|
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: oneflow/customized/utils/summary.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
- from google.protobuf import descriptor_pb2
- # @@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
-
- DESCRIPTOR = _descriptor.FileDescriptor(
- name='oneflow/customized/utils/summary.proto',
- package='oneflow',
- syntax='proto2',
- serialized_pb=_b('\n&oneflow/customized/utils/summary.proto\x12\x07oneflow\x1a%oneflow/customized/utils/tensor.proto\"\xb2\x01\n\x0fSummaryMetadata\x12\x38\n\x0bplugin_data\x18\x01 \x02(\x0b\x32#.oneflow.SummaryMetadata.PluginData\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x1b\n\x13summary_description\x18\x03 \x01(\t\x1a\x32\n\nPluginData\x12\x13\n\x0bplugin_name\x18\x01 \x02(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\"\x87\x01\n\x0eHistogramProto\x12\x0b\n\x03min\x18\x01 \x02(\x01\x12\x0b\n\x03max\x18\x02 \x02(\x01\x12\x0b\n\x03num\x18\x03 \x02(\x01\x12\x0b\n\x03sum\x18\x04 \x02(\x01\x12\x13\n\x0bsum_squares\x18\x05 \x02(\x01\x12\x18\n\x0c\x62ucket_limit\x18\x06 \x03(\x01\x42\x02\x10\x01\x12\x12\n\x06\x62ucket\x18\x07 \x03(\x01\x42\x02\x10\x01\"\xa1\x02\n\x07Summary\x12%\n\x05value\x18\x01 \x03(\x0b\x32\x16.oneflow.Summary.Value\x1a\xee\x01\n\x05Value\x12\x11\n\tnode_name\x18\x07 \x01(\t\x12\x0b\n\x03tag\x18\x01 \x02(\t\x12*\n\x08metadata\x18\t \x01(\x0b\x32\x18.oneflow.SummaryMetadata\x12\x16\n\x0csimple_value\x18\x02 \x01(\x02H\x00\x12&\n\x1cobsolete_old_style_histogram\x18\x03 \x01(\x0cH\x00\x12(\n\x05histo\x18\x05 \x01(\x0b\x32\x17.oneflow.HistogramProtoH\x00\x12&\n\x06tensor\x18\x08 \x01(\x0b\x32\x14.oneflow.TensorProtoH\x00\x42\x07\n\x05value')
- ,
- dependencies=[oneflow_dot_customized_dot_utils_dot_tensor__pb2.DESCRIPTOR,])
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-
-
-
- _SUMMARYMETADATA_PLUGINDATA = _descriptor.Descriptor(
- name='PluginData',
- full_name='oneflow.SummaryMetadata.PluginData',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='plugin_name', full_name='oneflow.SummaryMetadata.PluginData.plugin_name', index=0,
- number=1, 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),
- _descriptor.FieldDescriptor(
- name='content', full_name='oneflow.SummaryMetadata.PluginData.content', index=1,
- 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,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=219,
- serialized_end=269,
- )
-
- _SUMMARYMETADATA = _descriptor.Descriptor(
- name='SummaryMetadata',
- full_name='oneflow.SummaryMetadata',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='plugin_data', full_name='oneflow.SummaryMetadata.plugin_data', index=0,
- number=1, type=11, cpp_type=10, label=2,
- 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='display_name', full_name='oneflow.SummaryMetadata.display_name', 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='summary_description', full_name='oneflow.SummaryMetadata.summary_description', 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),
- ],
- extensions=[
- ],
- nested_types=[_SUMMARYMETADATA_PLUGINDATA, ],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=91,
- serialized_end=269,
- )
-
-
- _HISTOGRAMPROTO = _descriptor.Descriptor(
- name='HistogramProto',
- full_name='oneflow.HistogramProto',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='min', full_name='oneflow.HistogramProto.min', 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='max', full_name='oneflow.HistogramProto.max', index=1,
- number=2, 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='num', full_name='oneflow.HistogramProto.num', index=2,
- number=3, 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='sum', full_name='oneflow.HistogramProto.sum', index=3,
- number=4, 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='sum_squares', full_name='oneflow.HistogramProto.sum_squares', index=4,
- number=5, 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='bucket_limit', full_name='oneflow.HistogramProto.bucket_limit', index=5,
- number=6, type=1, cpp_type=5, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001'))),
- _descriptor.FieldDescriptor(
- name='bucket', full_name='oneflow.HistogramProto.bucket', index=6,
- number=7, type=1, cpp_type=5, label=3,
- has_default_value=False, default_value=[],
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001'))),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=272,
- serialized_end=407,
- )
-
-
- _SUMMARY_VALUE = _descriptor.Descriptor(
- name='Value',
- full_name='oneflow.Summary.Value',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='node_name', full_name='oneflow.Summary.Value.node_name', index=0,
- number=7, 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='tag', full_name='oneflow.Summary.Value.tag', index=1,
- number=1, 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),
- _descriptor.FieldDescriptor(
- name='metadata', full_name='oneflow.Summary.Value.metadata', index=2,
- number=9, 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='simple_value', full_name='oneflow.Summary.Value.simple_value', index=3,
- number=2, 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,
- options=None),
- _descriptor.FieldDescriptor(
- name='obsolete_old_style_histogram', full_name='oneflow.Summary.Value.obsolete_old_style_histogram', index=4,
- number=3, 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='histo', full_name='oneflow.Summary.Value.histo', index=5,
- 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='tensor', full_name='oneflow.Summary.Value.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,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- _descriptor.OneofDescriptor(
- name='value', full_name='oneflow.Summary.Value.value',
- index=0, containing_type=None, fields=[]),
- ],
- serialized_start=461,
- serialized_end=699,
- )
-
- _SUMMARY = _descriptor.Descriptor(
- name='Summary',
- full_name='oneflow.Summary',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='value', full_name='oneflow.Summary.value', index=0,
- number=1, 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,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[_SUMMARY_VALUE, ],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto2',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=410,
- serialized_end=699,
- )
-
- _SUMMARYMETADATA_PLUGINDATA.containing_type = _SUMMARYMETADATA
- _SUMMARYMETADATA.fields_by_name['plugin_data'].message_type = _SUMMARYMETADATA_PLUGINDATA
- _SUMMARY_VALUE.fields_by_name['metadata'].message_type = _SUMMARYMETADATA
- _SUMMARY_VALUE.fields_by_name['histo'].message_type = _HISTOGRAMPROTO
- _SUMMARY_VALUE.fields_by_name['tensor'].message_type = oneflow_dot_customized_dot_utils_dot_tensor__pb2._TENSORPROTO
- _SUMMARY_VALUE.containing_type = _SUMMARY
- _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
- _SUMMARY_VALUE.fields_by_name['simple_value'])
- _SUMMARY_VALUE.fields_by_name['simple_value'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
- _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
- _SUMMARY_VALUE.fields_by_name['obsolete_old_style_histogram'])
- _SUMMARY_VALUE.fields_by_name['obsolete_old_style_histogram'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
- _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
- _SUMMARY_VALUE.fields_by_name['histo'])
- _SUMMARY_VALUE.fields_by_name['histo'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
- _SUMMARY_VALUE.oneofs_by_name['value'].fields.append(
- _SUMMARY_VALUE.fields_by_name['tensor'])
- _SUMMARY_VALUE.fields_by_name['tensor'].containing_oneof = _SUMMARY_VALUE.oneofs_by_name['value']
- _SUMMARY.fields_by_name['value'].message_type = _SUMMARY_VALUE
- DESCRIPTOR.message_types_by_name['SummaryMetadata'] = _SUMMARYMETADATA
- DESCRIPTOR.message_types_by_name['HistogramProto'] = _HISTOGRAMPROTO
- DESCRIPTOR.message_types_by_name['Summary'] = _SUMMARY
-
- SummaryMetadata = _reflection.GeneratedProtocolMessageType('SummaryMetadata', (_message.Message,), dict(
-
- PluginData = _reflection.GeneratedProtocolMessageType('PluginData', (_message.Message,), dict(
- DESCRIPTOR = _SUMMARYMETADATA_PLUGINDATA,
- __module__ = 'oneflow.customized.utils.summary_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.SummaryMetadata.PluginData)
- ))
- ,
- DESCRIPTOR = _SUMMARYMETADATA,
- __module__ = 'oneflow.customized.utils.summary_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.SummaryMetadata)
- ))
- _sym_db.RegisterMessage(SummaryMetadata)
- _sym_db.RegisterMessage(SummaryMetadata.PluginData)
-
- HistogramProto = _reflection.GeneratedProtocolMessageType('HistogramProto', (_message.Message,), dict(
- DESCRIPTOR = _HISTOGRAMPROTO,
- __module__ = 'oneflow.customized.utils.summary_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.HistogramProto)
- ))
- _sym_db.RegisterMessage(HistogramProto)
-
- Summary = _reflection.GeneratedProtocolMessageType('Summary', (_message.Message,), dict(
-
- Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), dict(
- DESCRIPTOR = _SUMMARY_VALUE,
- __module__ = 'oneflow.customized.utils.summary_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.Summary.Value)
- ))
- ,
- DESCRIPTOR = _SUMMARY,
- __module__ = 'oneflow.customized.utils.summary_pb2'
- # @@protoc_insertion_point(class_scope:oneflow.Summary)
- ))
- _sym_db.RegisterMessage(Summary)
- _sym_db.RegisterMessage(Summary.Value)
-
-
- _HISTOGRAMPROTO.fields_by_name['bucket_limit'].has_options = True
- _HISTOGRAMPROTO.fields_by_name['bucket_limit']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001'))
- _HISTOGRAMPROTO.fields_by_name['bucket'].has_options = True
- _HISTOGRAMPROTO.fields_by_name['bucket']._options = _descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\020\001'))
- # @@protoc_insertion_point(module_scope)
|