# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: oneflow/customized/utils/summary.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool 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 projector_pb2 as oneflow_dot_customized_dot_utils_dot_projector__pb2 from oneflow.customized.utils import transtext_pb2 as oneflow_dot_customized_dot_utils_dot_transtext__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&oneflow/customized/utils/summary.proto\x12\x07oneflow\x1a%oneflow/customized/utils/tensor.proto\x1a(oneflow/customized/utils/projector.proto\x1a(oneflow/customized/utils/transtext.proto\"\x87\x01\n\x0eHistogramProto\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\x12\x0b\n\x03num\x18\x03 \x01(\x01\x12\x0b\n\x03sum\x18\x04 \x01(\x01\x12\x13\n\x0bsum_squares\x18\x05 \x01(\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\"\xb2\x01\n\x0fSummaryMetadata\x12\x38\n\x0bplugin_data\x18\x01 \x01(\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 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\x0c\"\x8f\x06\n\x07Summary\x12%\n\x05value\x18\x01 \x03(\x0b\x32\x16.oneflow.Summary.Value\x1a}\n\x05\x41udio\x12\x13\n\x0bsample_rate\x18\x01 \x01(\x02\x12\x14\n\x0cnum_channels\x18\x02 \x01(\x03\x12\x15\n\rlength_frames\x18\x03 \x01(\x03\x12\x1c\n\x14\x65ncoded_audio_string\x18\x04 \x01(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x05 \x01(\t\x1aX\n\x05Image\x12\x0e\n\x06height\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x12\n\ncolorspace\x18\x03 \x01(\x05\x12\x1c\n\x14\x65ncoded_image_string\x18\x04 \x01(\x0c\x1a\xe3\x02\n\x05Value\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12*\n\x08metadata\x18\t \x01(\x0b\x32\x18.oneflow.SummaryMetadata\x12\x16\n\x0csimple_value\x18\x02 \x01(\x02H\x00\x12\'\n\x05image\x18\x04 \x01(\x0b\x32\x16.oneflow.Summary.ImageH\x00\x12(\n\x05histo\x18\x05 \x01(\x0b\x32\x17.oneflow.HistogramProtoH\x00\x12\'\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x16.oneflow.Summary.AudioH\x00\x12\'\n\tprojector\x18\x07 \x01(\x0b\x32\x12.oneflow.ProjectorH\x00\x12&\n\x06tensor\x18\x08 \x01(\x0b\x32\x14.oneflow.TensorProtoH\x00\x12\x33\n\x0btransformer\x18\n \x01(\x0b\x32\x1c.oneflow.Summary.TransformerH\x00\x42\x07\n\x05value\x1a\x9d\x01\n\x0bTransformer\x12-\n\rattentionItem\x18\x01 \x03(\x0b\x32\x16.oneflow.AttentionItem\x12\x16\n\x0e\x64\x65\x66\x61ult_filter\x18\x02 \x01(\t\x12\x15\n\rbidirectional\x18\x03 \x01(\t\x12\x13\n\x0b\x64isplayMode\x18\x04 \x01(\t\x12\r\n\x05layer\x18\x05 \x01(\x05\x12\x0c\n\x04head\x18\x06 \x01(\x05\x62\x06proto3') _HISTOGRAMPROTO = DESCRIPTOR.message_types_by_name['HistogramProto'] _SUMMARYMETADATA = DESCRIPTOR.message_types_by_name['SummaryMetadata'] _SUMMARYMETADATA_PLUGINDATA = _SUMMARYMETADATA.nested_types_by_name['PluginData'] _SUMMARY = DESCRIPTOR.message_types_by_name['Summary'] _SUMMARY_AUDIO = _SUMMARY.nested_types_by_name['Audio'] _SUMMARY_IMAGE = _SUMMARY.nested_types_by_name['Image'] _SUMMARY_VALUE = _SUMMARY.nested_types_by_name['Value'] _SUMMARY_TRANSFORMER = _SUMMARY.nested_types_by_name['Transformer'] HistogramProto = _reflection.GeneratedProtocolMessageType('HistogramProto', (_message.Message,), { 'DESCRIPTOR' : _HISTOGRAMPROTO, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.HistogramProto) }) _sym_db.RegisterMessage(HistogramProto) SummaryMetadata = _reflection.GeneratedProtocolMessageType('SummaryMetadata', (_message.Message,), { 'PluginData' : _reflection.GeneratedProtocolMessageType('PluginData', (_message.Message,), { '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) Summary = _reflection.GeneratedProtocolMessageType('Summary', (_message.Message,), { 'Audio' : _reflection.GeneratedProtocolMessageType('Audio', (_message.Message,), { 'DESCRIPTOR' : _SUMMARY_AUDIO, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.Summary.Audio) }) , 'Image' : _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), { 'DESCRIPTOR' : _SUMMARY_IMAGE, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.Summary.Image) }) , 'Value' : _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), { 'DESCRIPTOR' : _SUMMARY_VALUE, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.Summary.Value) }) , 'Transformer' : _reflection.GeneratedProtocolMessageType('Transformer', (_message.Message,), { 'DESCRIPTOR' : _SUMMARY_TRANSFORMER, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.Summary.Transformer) }) , 'DESCRIPTOR' : _SUMMARY, '__module__' : 'oneflow.customized.utils.summary_pb2' # @@protoc_insertion_point(class_scope:oneflow.Summary) }) _sym_db.RegisterMessage(Summary) _sym_db.RegisterMessage(Summary.Audio) _sym_db.RegisterMessage(Summary.Image) _sym_db.RegisterMessage(Summary.Value) _sym_db.RegisterMessage(Summary.Transformer) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _HISTOGRAMPROTO.fields_by_name['bucket_limit']._options = None _HISTOGRAMPROTO.fields_by_name['bucket_limit']._serialized_options = b'\020\001' _HISTOGRAMPROTO.fields_by_name['bucket']._options = None _HISTOGRAMPROTO.fields_by_name['bucket']._serialized_options = b'\020\001' _HISTOGRAMPROTO._serialized_start=175 _HISTOGRAMPROTO._serialized_end=310 _SUMMARYMETADATA._serialized_start=313 _SUMMARYMETADATA._serialized_end=491 _SUMMARYMETADATA_PLUGINDATA._serialized_start=441 _SUMMARYMETADATA_PLUGINDATA._serialized_end=491 _SUMMARY._serialized_start=494 _SUMMARY._serialized_end=1277 _SUMMARY_AUDIO._serialized_start=544 _SUMMARY_AUDIO._serialized_end=669 _SUMMARY_IMAGE._serialized_start=671 _SUMMARY_IMAGE._serialized_end=759 _SUMMARY_VALUE._serialized_start=762 _SUMMARY_VALUE._serialized_end=1117 _SUMMARY_TRANSFORMER._serialized_start=1120 _SUMMARY_TRANSFORMER._serialized_end=1277 # @@protoc_insertion_point(module_scope)