|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015 |
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: tensorflow/core/framework/summary.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
-
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Tensorflow {
-
- /// <summary>Holder for reflection information generated from tensorflow/core/framework/summary.proto</summary>
- public static partial class SummaryReflection {
-
- #region Descriptor
- /// <summary>File descriptor for tensorflow/core/framework/summary.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static SummaryReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cid0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3N1bW1hcnkucHJvdG8SCnRl",
- "bnNvcmZsb3caJnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29yLnBy",
- "b3RvIicKElN1bW1hcnlEZXNjcmlwdGlvbhIRCgl0eXBlX2hpbnQYASABKAki",
- "hwEKDkhpc3RvZ3JhbVByb3RvEgsKA21pbhgBIAEoARILCgNtYXgYAiABKAES",
- "CwoDbnVtGAMgASgBEgsKA3N1bRgEIAEoARITCgtzdW1fc3F1YXJlcxgFIAEo",
- "ARIYCgxidWNrZXRfbGltaXQYBiADKAFCAhABEhIKBmJ1Y2tldBgHIAMoAUIC",
- "EAEi4AEKD1N1bW1hcnlNZXRhZGF0YRI7CgtwbHVnaW5fZGF0YRgBIAEoCzIm",
- "LnRlbnNvcmZsb3cuU3VtbWFyeU1ldGFkYXRhLlBsdWdpbkRhdGESFAoMZGlz",
- "cGxheV9uYW1lGAIgASgJEhsKE3N1bW1hcnlfZGVzY3JpcHRpb24YAyABKAkS",
- "KQoKZGF0YV9jbGFzcxgEIAEoDjIVLnRlbnNvcmZsb3cuRGF0YUNsYXNzGjIK",
- "ClBsdWdpbkRhdGESEwoLcGx1Z2luX25hbWUYASABKAkSDwoHY29udGVudBgC",
- "IAEoDCLeBAoHU3VtbWFyeRIoCgV2YWx1ZRgBIAMoCzIZLnRlbnNvcmZsb3cu",
- "U3VtbWFyeS5WYWx1ZRpYCgVJbWFnZRIOCgZoZWlnaHQYASABKAUSDQoFd2lk",
- "dGgYAiABKAUSEgoKY29sb3JzcGFjZRgDIAEoBRIcChRlbmNvZGVkX2ltYWdl",
- "X3N0cmluZxgEIAEoDBp9CgVBdWRpbxITCgtzYW1wbGVfcmF0ZRgBIAEoAhIU",
- "CgxudW1fY2hhbm5lbHMYAiABKAMSFQoNbGVuZ3RoX2ZyYW1lcxgDIAEoAxIc",
- "ChRlbmNvZGVkX2F1ZGlvX3N0cmluZxgEIAEoDBIUCgxjb250ZW50X3R5cGUY",
- "BSABKAkazwIKBVZhbHVlEhEKCW5vZGVfbmFtZRgHIAEoCRILCgN0YWcYASAB",
- "KAkSLQoIbWV0YWRhdGEYCSABKAsyGy50ZW5zb3JmbG93LlN1bW1hcnlNZXRh",
- "ZGF0YRIWCgxzaW1wbGVfdmFsdWUYAiABKAJIABImChxvYnNvbGV0ZV9vbGRf",
- "c3R5bGVfaGlzdG9ncmFtGAMgASgMSAASKgoFaW1hZ2UYBCABKAsyGS50ZW5z",
- "b3JmbG93LlN1bW1hcnkuSW1hZ2VIABIrCgVoaXN0bxgFIAEoCzIaLnRlbnNv",
- "cmZsb3cuSGlzdG9ncmFtUHJvdG9IABIqCgVhdWRpbxgGIAEoCzIZLnRlbnNv",
- "cmZsb3cuU3VtbWFyeS5BdWRpb0gAEikKBnRlbnNvchgIIAEoCzIXLnRlbnNv",
- "cmZsb3cuVGVuc29yUHJvdG9IAEIHCgV2YWx1ZSpvCglEYXRhQ2xhc3MSFgoS",
- "REFUQV9DTEFTU19VTktOT1dOEAASFQoRREFUQV9DTEFTU19TQ0FMQVIQARIV",
- "ChFEQVRBX0NMQVNTX1RFTlNPUhACEhwKGERBVEFfQ0xBU1NfQkxPQl9TRVFV",
- "RU5DRRADQn4KGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0INU3VtbWFyeVBy",
- "b3Rvc1ABWk5naXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5z",
- "b3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL3N1bW1hcnlfZ29fcHJvdG/4AQFi",
- "BnByb3RvMw=="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Tensorflow.TensorReflection.Descriptor, },
- new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.DataClass), }, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryDescription), global::Tensorflow.SummaryDescription.Parser, new[]{ "TypeHint" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.HistogramProto), global::Tensorflow.HistogramProto.Parser, new[]{ "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryMetadata), global::Tensorflow.SummaryMetadata.Parser, new[]{ "PluginData", "DisplayName", "SummaryDescription", "DataClass" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SummaryMetadata.Types.PluginData), global::Tensorflow.SummaryMetadata.Types.PluginData.Parser, new[]{ "PluginName", "Content" }, null, null, null, null)}),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary), global::Tensorflow.Summary.Parser, new[]{ "Value" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Image), global::Tensorflow.Summary.Types.Image.Parser, new[]{ "Height", "Width", "Colorspace", "EncodedImageString" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Audio), global::Tensorflow.Summary.Types.Audio.Parser, new[]{ "SampleRate", "NumChannels", "LengthFrames", "EncodedAudioString", "ContentType" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Summary.Types.Value), global::Tensorflow.Summary.Types.Value.Parser, new[]{ "NodeName", "Tag", "Metadata", "SimpleValue", "ObsoleteOldStyleHistogram", "Image", "Histo", "Audio", "Tensor" }, new[]{ "Value" }, null, null, null)})
- }));
- }
- #endregion
-
- }
- #region Enums
- public enum DataClass {
- /// <summary>
- /// Unknown data class, used (implicitly) for legacy data. Will not be
- /// processed by data ingestion pipelines.
- /// </summary>
- [pbr::OriginalName("DATA_CLASS_UNKNOWN")] Unknown = 0,
- /// <summary>
- /// Scalar time series. Each `Value` for the corresponding tag must have
- /// `tensor` set to a rank-0 tensor of type `DT_FLOAT` (float32).
- /// </summary>
- [pbr::OriginalName("DATA_CLASS_SCALAR")] Scalar = 1,
- /// <summary>
- /// Tensor time series. Each `Value` for the corresponding tag must have
- /// `tensor` set. The tensor value is arbitrary, but should be small to
- /// accommodate direct storage in database backends: an upper bound of a few
- /// kilobytes is a reasonable rule of thumb.
- /// </summary>
- [pbr::OriginalName("DATA_CLASS_TENSOR")] Tensor = 2,
- /// <summary>
- /// Blob sequence time series. Each `Value` for the corresponding tag must
- /// have `tensor` set to a rank-1 tensor of bytestring dtype.
- /// </summary>
- [pbr::OriginalName("DATA_CLASS_BLOB_SEQUENCE")] BlobSequence = 3,
- }
-
- #endregion
-
- #region Messages
- /// <summary>
- /// Metadata associated with a series of Summary data
- /// </summary>
- public sealed partial class SummaryDescription : pb::IMessage<SummaryDescription> {
- private static readonly pb::MessageParser<SummaryDescription> _parser = new pb::MessageParser<SummaryDescription>(() => new SummaryDescription());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SummaryDescription> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryDescription() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryDescription(SummaryDescription other) : this() {
- typeHint_ = other.typeHint_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryDescription Clone() {
- return new SummaryDescription(this);
- }
-
- /// <summary>Field number for the "type_hint" field.</summary>
- public const int TypeHintFieldNumber = 1;
- private string typeHint_ = "";
- /// <summary>
- /// Hint on how plugins should process the data in this series.
- /// Supported values include "scalar", "histogram", "image", "audio"
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string TypeHint {
- get { return typeHint_; }
- set {
- typeHint_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SummaryDescription);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SummaryDescription other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (TypeHint != other.TypeHint) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (TypeHint.Length != 0) hash ^= TypeHint.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (TypeHint.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(TypeHint);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (TypeHint.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeHint);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SummaryDescription other) {
- if (other == null) {
- return;
- }
- if (other.TypeHint.Length != 0) {
- TypeHint = other.TypeHint;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- TypeHint = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// Serialization format for histogram module in
- /// core/lib/histogram/histogram.h
- /// </summary>
- public sealed partial class HistogramProto : pb::IMessage<HistogramProto> {
- private static readonly pb::MessageParser<HistogramProto> _parser = new pb::MessageParser<HistogramProto>(() => new HistogramProto());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<HistogramProto> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public HistogramProto() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public HistogramProto(HistogramProto other) : this() {
- min_ = other.min_;
- max_ = other.max_;
- num_ = other.num_;
- sum_ = other.sum_;
- sumSquares_ = other.sumSquares_;
- bucketLimit_ = other.bucketLimit_.Clone();
- bucket_ = other.bucket_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public HistogramProto Clone() {
- return new HistogramProto(this);
- }
-
- /// <summary>Field number for the "min" field.</summary>
- public const int MinFieldNumber = 1;
- private double min_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Min {
- get { return min_; }
- set {
- min_ = value;
- }
- }
-
- /// <summary>Field number for the "max" field.</summary>
- public const int MaxFieldNumber = 2;
- private double max_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Max {
- get { return max_; }
- set {
- max_ = value;
- }
- }
-
- /// <summary>Field number for the "num" field.</summary>
- public const int NumFieldNumber = 3;
- private double num_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Num {
- get { return num_; }
- set {
- num_ = value;
- }
- }
-
- /// <summary>Field number for the "sum" field.</summary>
- public const int SumFieldNumber = 4;
- private double sum_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double Sum {
- get { return sum_; }
- set {
- sum_ = value;
- }
- }
-
- /// <summary>Field number for the "sum_squares" field.</summary>
- public const int SumSquaresFieldNumber = 5;
- private double sumSquares_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public double SumSquares {
- get { return sumSquares_; }
- set {
- sumSquares_ = value;
- }
- }
-
- /// <summary>Field number for the "bucket_limit" field.</summary>
- public const int BucketLimitFieldNumber = 6;
- private static readonly pb::FieldCodec<double> _repeated_bucketLimit_codec
- = pb::FieldCodec.ForDouble(50);
- private readonly pbc::RepeatedField<double> bucketLimit_ = new pbc::RepeatedField<double>();
- /// <summary>
- /// Parallel arrays encoding the bucket boundaries and the bucket values.
- /// bucket(i) is the count for the bucket i. The range for
- /// a bucket is:
- /// i == 0: -DBL_MAX .. bucket_limit(0)
- /// i != 0: bucket_limit(i-1) .. bucket_limit(i)
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> BucketLimit {
- get { return bucketLimit_; }
- }
-
- /// <summary>Field number for the "bucket" field.</summary>
- public const int BucketFieldNumber = 7;
- private static readonly pb::FieldCodec<double> _repeated_bucket_codec
- = pb::FieldCodec.ForDouble(58);
- private readonly pbc::RepeatedField<double> bucket_ = new pbc::RepeatedField<double>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<double> Bucket {
- get { return bucket_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as HistogramProto);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(HistogramProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Min, other.Min)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Max, other.Max)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Num, other.Num)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Sum, other.Sum)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumSquares, other.SumSquares)) return false;
- if(!bucketLimit_.Equals(other.bucketLimit_)) return false;
- if(!bucket_.Equals(other.bucket_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Min != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Min);
- if (Max != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Max);
- if (Num != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Num);
- if (Sum != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Sum);
- if (SumSquares != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumSquares);
- hash ^= bucketLimit_.GetHashCode();
- hash ^= bucket_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Min != 0D) {
- output.WriteRawTag(9);
- output.WriteDouble(Min);
- }
- if (Max != 0D) {
- output.WriteRawTag(17);
- output.WriteDouble(Max);
- }
- if (Num != 0D) {
- output.WriteRawTag(25);
- output.WriteDouble(Num);
- }
- if (Sum != 0D) {
- output.WriteRawTag(33);
- output.WriteDouble(Sum);
- }
- if (SumSquares != 0D) {
- output.WriteRawTag(41);
- output.WriteDouble(SumSquares);
- }
- bucketLimit_.WriteTo(output, _repeated_bucketLimit_codec);
- bucket_.WriteTo(output, _repeated_bucket_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Min != 0D) {
- size += 1 + 8;
- }
- if (Max != 0D) {
- size += 1 + 8;
- }
- if (Num != 0D) {
- size += 1 + 8;
- }
- if (Sum != 0D) {
- size += 1 + 8;
- }
- if (SumSquares != 0D) {
- size += 1 + 8;
- }
- size += bucketLimit_.CalculateSize(_repeated_bucketLimit_codec);
- size += bucket_.CalculateSize(_repeated_bucket_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(HistogramProto other) {
- if (other == null) {
- return;
- }
- if (other.Min != 0D) {
- Min = other.Min;
- }
- if (other.Max != 0D) {
- Max = other.Max;
- }
- if (other.Num != 0D) {
- Num = other.Num;
- }
- if (other.Sum != 0D) {
- Sum = other.Sum;
- }
- if (other.SumSquares != 0D) {
- SumSquares = other.SumSquares;
- }
- bucketLimit_.Add(other.bucketLimit_);
- bucket_.Add(other.bucket_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 9: {
- Min = input.ReadDouble();
- break;
- }
- case 17: {
- Max = input.ReadDouble();
- break;
- }
- case 25: {
- Num = input.ReadDouble();
- break;
- }
- case 33: {
- Sum = input.ReadDouble();
- break;
- }
- case 41: {
- SumSquares = input.ReadDouble();
- break;
- }
- case 50:
- case 49: {
- bucketLimit_.AddEntriesFrom(input, _repeated_bucketLimit_codec);
- break;
- }
- case 58:
- case 57: {
- bucket_.AddEntriesFrom(input, _repeated_bucket_codec);
- break;
- }
- }
- }
- }
-
- }
-
- /// <summary>
- /// A SummaryMetadata encapsulates information on which plugins are able to make
- /// use of a certain summary value.
- /// </summary>
- public sealed partial class SummaryMetadata : pb::IMessage<SummaryMetadata> {
- private static readonly pb::MessageParser<SummaryMetadata> _parser = new pb::MessageParser<SummaryMetadata>(() => new SummaryMetadata());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SummaryMetadata> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryMetadata() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryMetadata(SummaryMetadata other) : this() {
- pluginData_ = other.pluginData_ != null ? other.pluginData_.Clone() : null;
- displayName_ = other.displayName_;
- summaryDescription_ = other.summaryDescription_;
- dataClass_ = other.dataClass_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SummaryMetadata Clone() {
- return new SummaryMetadata(this);
- }
-
- /// <summary>Field number for the "plugin_data" field.</summary>
- public const int PluginDataFieldNumber = 1;
- private global::Tensorflow.SummaryMetadata.Types.PluginData pluginData_;
- /// <summary>
- /// Data that associates a summary with a certain plugin.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.SummaryMetadata.Types.PluginData PluginData {
- get { return pluginData_; }
- set {
- pluginData_ = value;
- }
- }
-
- /// <summary>Field number for the "display_name" field.</summary>
- public const int DisplayNameFieldNumber = 2;
- private string displayName_ = "";
- /// <summary>
- /// Display name for viewing in TensorBoard.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DisplayName {
- get { return displayName_; }
- set {
- displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "summary_description" field.</summary>
- public const int SummaryDescriptionFieldNumber = 3;
- private string summaryDescription_ = "";
- /// <summary>
- /// Longform readable description of the summary sequence. Markdown supported.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string SummaryDescription {
- get { return summaryDescription_; }
- set {
- summaryDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "data_class" field.</summary>
- public const int DataClassFieldNumber = 4;
- private global::Tensorflow.DataClass dataClass_ = global::Tensorflow.DataClass.Unknown;
- /// <summary>
- /// Class of data stored in this time series. Required for compatibility with
- /// TensorBoard's generic data facilities (`DataProvider`, et al.). This value
- /// imposes constraints on the dtype and shape of the corresponding tensor
- /// values. See `DataClass` docs for details.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.DataClass DataClass {
- get { return dataClass_; }
- set {
- dataClass_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as SummaryMetadata);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SummaryMetadata other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!object.Equals(PluginData, other.PluginData)) return false;
- if (DisplayName != other.DisplayName) return false;
- if (SummaryDescription != other.SummaryDescription) return false;
- if (DataClass != other.DataClass) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (pluginData_ != null) hash ^= PluginData.GetHashCode();
- if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode();
- if (SummaryDescription.Length != 0) hash ^= SummaryDescription.GetHashCode();
- if (DataClass != global::Tensorflow.DataClass.Unknown) hash ^= DataClass.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (pluginData_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(PluginData);
- }
- if (DisplayName.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(DisplayName);
- }
- if (SummaryDescription.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(SummaryDescription);
- }
- if (DataClass != global::Tensorflow.DataClass.Unknown) {
- output.WriteRawTag(32);
- output.WriteEnum((int) DataClass);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (pluginData_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(PluginData);
- }
- if (DisplayName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
- }
- if (SummaryDescription.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(SummaryDescription);
- }
- if (DataClass != global::Tensorflow.DataClass.Unknown) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataClass);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SummaryMetadata other) {
- if (other == null) {
- return;
- }
- if (other.pluginData_ != null) {
- if (pluginData_ == null) {
- PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData();
- }
- PluginData.MergeFrom(other.PluginData);
- }
- if (other.DisplayName.Length != 0) {
- DisplayName = other.DisplayName;
- }
- if (other.SummaryDescription.Length != 0) {
- SummaryDescription = other.SummaryDescription;
- }
- if (other.DataClass != global::Tensorflow.DataClass.Unknown) {
- DataClass = other.DataClass;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- if (pluginData_ == null) {
- PluginData = new global::Tensorflow.SummaryMetadata.Types.PluginData();
- }
- input.ReadMessage(PluginData);
- break;
- }
- case 18: {
- DisplayName = input.ReadString();
- break;
- }
- case 26: {
- SummaryDescription = input.ReadString();
- break;
- }
- case 32: {
- DataClass = (global::Tensorflow.DataClass) input.ReadEnum();
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the SummaryMetadata message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class PluginData : pb::IMessage<PluginData> {
- private static readonly pb::MessageParser<PluginData> _parser = new pb::MessageParser<PluginData>(() => new PluginData());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<PluginData> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.SummaryMetadata.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PluginData() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PluginData(PluginData other) : this() {
- pluginName_ = other.pluginName_;
- content_ = other.content_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public PluginData Clone() {
- return new PluginData(this);
- }
-
- /// <summary>Field number for the "plugin_name" field.</summary>
- public const int PluginNameFieldNumber = 1;
- private string pluginName_ = "";
- /// <summary>
- /// The name of the plugin this data pertains to.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string PluginName {
- get { return pluginName_; }
- set {
- pluginName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "content" field.</summary>
- public const int ContentFieldNumber = 2;
- private pb::ByteString content_ = pb::ByteString.Empty;
- /// <summary>
- /// The content to store for the plugin. The best practice is for this to be
- /// a binary serialized protocol buffer.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString Content {
- get { return content_; }
- set {
- content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as PluginData);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(PluginData other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PluginName != other.PluginName) return false;
- if (Content != other.Content) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (PluginName.Length != 0) hash ^= PluginName.GetHashCode();
- if (Content.Length != 0) hash ^= Content.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (PluginName.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(PluginName);
- }
- if (Content.Length != 0) {
- output.WriteRawTag(18);
- output.WriteBytes(Content);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (PluginName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginName);
- }
- if (Content.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(PluginData other) {
- if (other == null) {
- return;
- }
- if (other.PluginName.Length != 0) {
- PluginName = other.PluginName;
- }
- if (other.Content.Length != 0) {
- Content = other.Content;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- PluginName = input.ReadString();
- break;
- }
- case 18: {
- Content = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- /// <summary>
- /// A Summary is a set of named values to be displayed by the
- /// visualizer.
- ///
- /// Summaries are produced regularly during training, as controlled by
- /// the "summary_interval_secs" attribute of the training operation.
- /// Summaries are also produced at the end of an evaluation.
- /// </summary>
- public sealed partial class Summary : pb::IMessage<Summary> {
- private static readonly pb::MessageParser<Summary> _parser = new pb::MessageParser<Summary>(() => new Summary());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Summary> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.SummaryReflection.Descriptor.MessageTypes[3]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Summary() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Summary(Summary other) : this() {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Summary Clone() {
- return new Summary(this);
- }
-
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.Summary.Types.Value> _repeated_value_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.Summary.Types.Value.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.Summary.Types.Value> value_ = new pbc::RepeatedField<global::Tensorflow.Summary.Types.Value>();
- /// <summary>
- /// Set of values for the summary.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Tensorflow.Summary.Types.Value> Value {
- get { return value_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Summary);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Summary other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!value_.Equals(other.value_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Summary other) {
- if (other == null) {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- value_.AddEntriesFrom(input, _repeated_value_codec);
- break;
- }
- }
- }
- }
-
- #region Nested types
- /// <summary>Container for nested types declared in the Summary message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static partial class Types {
- public sealed partial class Image : pb::IMessage<Image> {
- private static readonly pb::MessageParser<Image> _parser = new pb::MessageParser<Image>(() => new Image());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Image> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.Summary.Descriptor.NestedTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Image() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Image(Image other) : this() {
- height_ = other.height_;
- width_ = other.width_;
- colorspace_ = other.colorspace_;
- encodedImageString_ = other.encodedImageString_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Image Clone() {
- return new Image(this);
- }
-
- /// <summary>Field number for the "height" field.</summary>
- public const int HeightFieldNumber = 1;
- private int height_;
- /// <summary>
- /// Dimensions of the image.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Height {
- get { return height_; }
- set {
- height_ = value;
- }
- }
-
- /// <summary>Field number for the "width" field.</summary>
- public const int WidthFieldNumber = 2;
- private int width_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Width {
- get { return width_; }
- set {
- width_ = value;
- }
- }
-
- /// <summary>Field number for the "colorspace" field.</summary>
- public const int ColorspaceFieldNumber = 3;
- private int colorspace_;
- /// <summary>
- /// Valid colorspace values are
- /// 1 - grayscale
- /// 2 - grayscale + alpha
- /// 3 - RGB
- /// 4 - RGBA
- /// 5 - DIGITAL_YUV
- /// 6 - BGRA
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Colorspace {
- get { return colorspace_; }
- set {
- colorspace_ = value;
- }
- }
-
- /// <summary>Field number for the "encoded_image_string" field.</summary>
- public const int EncodedImageStringFieldNumber = 4;
- private pb::ByteString encodedImageString_ = pb::ByteString.Empty;
- /// <summary>
- /// Image data in encoded format. All image formats supported by
- /// image_codec::CoderUtil can be stored here.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString EncodedImageString {
- get { return encodedImageString_; }
- set {
- encodedImageString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Image);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Image other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Height != other.Height) return false;
- if (Width != other.Width) return false;
- if (Colorspace != other.Colorspace) return false;
- if (EncodedImageString != other.EncodedImageString) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Height != 0) hash ^= Height.GetHashCode();
- if (Width != 0) hash ^= Width.GetHashCode();
- if (Colorspace != 0) hash ^= Colorspace.GetHashCode();
- if (EncodedImageString.Length != 0) hash ^= EncodedImageString.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Height != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Height);
- }
- if (Width != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Width);
- }
- if (Colorspace != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Colorspace);
- }
- if (EncodedImageString.Length != 0) {
- output.WriteRawTag(34);
- output.WriteBytes(EncodedImageString);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Height != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
- }
- if (Width != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
- }
- if (Colorspace != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Colorspace);
- }
- if (EncodedImageString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedImageString);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Image other) {
- if (other == null) {
- return;
- }
- if (other.Height != 0) {
- Height = other.Height;
- }
- if (other.Width != 0) {
- Width = other.Width;
- }
- if (other.Colorspace != 0) {
- Colorspace = other.Colorspace;
- }
- if (other.EncodedImageString.Length != 0) {
- EncodedImageString = other.EncodedImageString;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- Height = input.ReadInt32();
- break;
- }
- case 16: {
- Width = input.ReadInt32();
- break;
- }
- case 24: {
- Colorspace = input.ReadInt32();
- break;
- }
- case 34: {
- EncodedImageString = input.ReadBytes();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Audio : pb::IMessage<Audio> {
- private static readonly pb::MessageParser<Audio> _parser = new pb::MessageParser<Audio>(() => new Audio());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Audio> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.Summary.Descriptor.NestedTypes[1]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Audio() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Audio(Audio other) : this() {
- sampleRate_ = other.sampleRate_;
- numChannels_ = other.numChannels_;
- lengthFrames_ = other.lengthFrames_;
- encodedAudioString_ = other.encodedAudioString_;
- contentType_ = other.contentType_;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Audio Clone() {
- return new Audio(this);
- }
-
- /// <summary>Field number for the "sample_rate" field.</summary>
- public const int SampleRateFieldNumber = 1;
- private float sampleRate_;
- /// <summary>
- /// Sample rate of the audio in Hz.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float SampleRate {
- get { return sampleRate_; }
- set {
- sampleRate_ = value;
- }
- }
-
- /// <summary>Field number for the "num_channels" field.</summary>
- public const int NumChannelsFieldNumber = 2;
- private long numChannels_;
- /// <summary>
- /// Number of channels of audio.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long NumChannels {
- get { return numChannels_; }
- set {
- numChannels_ = value;
- }
- }
-
- /// <summary>Field number for the "length_frames" field.</summary>
- public const int LengthFramesFieldNumber = 3;
- private long lengthFrames_;
- /// <summary>
- /// Length of the audio in frames (samples per channel).
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long LengthFrames {
- get { return lengthFrames_; }
- set {
- lengthFrames_ = value;
- }
- }
-
- /// <summary>Field number for the "encoded_audio_string" field.</summary>
- public const int EncodedAudioStringFieldNumber = 4;
- private pb::ByteString encodedAudioString_ = pb::ByteString.Empty;
- /// <summary>
- /// Encoded audio data and its associated RFC 2045 content type (e.g.
- /// "audio/wav").
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString EncodedAudioString {
- get { return encodedAudioString_; }
- set {
- encodedAudioString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "content_type" field.</summary>
- public const int ContentTypeFieldNumber = 5;
- private string contentType_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string ContentType {
- get { return contentType_; }
- set {
- contentType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Audio);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Audio other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SampleRate, other.SampleRate)) return false;
- if (NumChannels != other.NumChannels) return false;
- if (LengthFrames != other.LengthFrames) return false;
- if (EncodedAudioString != other.EncodedAudioString) return false;
- if (ContentType != other.ContentType) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (SampleRate != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SampleRate);
- if (NumChannels != 0L) hash ^= NumChannels.GetHashCode();
- if (LengthFrames != 0L) hash ^= LengthFrames.GetHashCode();
- if (EncodedAudioString.Length != 0) hash ^= EncodedAudioString.GetHashCode();
- if (ContentType.Length != 0) hash ^= ContentType.GetHashCode();
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (SampleRate != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(SampleRate);
- }
- if (NumChannels != 0L) {
- output.WriteRawTag(16);
- output.WriteInt64(NumChannels);
- }
- if (LengthFrames != 0L) {
- output.WriteRawTag(24);
- output.WriteInt64(LengthFrames);
- }
- if (EncodedAudioString.Length != 0) {
- output.WriteRawTag(34);
- output.WriteBytes(EncodedAudioString);
- }
- if (ContentType.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(ContentType);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (SampleRate != 0F) {
- size += 1 + 4;
- }
- if (NumChannels != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumChannels);
- }
- if (LengthFrames != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(LengthFrames);
- }
- if (EncodedAudioString.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncodedAudioString);
- }
- if (ContentType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(ContentType);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Audio other) {
- if (other == null) {
- return;
- }
- if (other.SampleRate != 0F) {
- SampleRate = other.SampleRate;
- }
- if (other.NumChannels != 0L) {
- NumChannels = other.NumChannels;
- }
- if (other.LengthFrames != 0L) {
- LengthFrames = other.LengthFrames;
- }
- if (other.EncodedAudioString.Length != 0) {
- EncodedAudioString = other.EncodedAudioString;
- }
- if (other.ContentType.Length != 0) {
- ContentType = other.ContentType;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 13: {
- SampleRate = input.ReadFloat();
- break;
- }
- case 16: {
- NumChannels = input.ReadInt64();
- break;
- }
- case 24: {
- LengthFrames = input.ReadInt64();
- break;
- }
- case 34: {
- EncodedAudioString = input.ReadBytes();
- break;
- }
- case 42: {
- ContentType = input.ReadString();
- break;
- }
- }
- }
- }
-
- }
-
- public sealed partial class Value : pb::IMessage<Value> {
- private static readonly pb::MessageParser<Value> _parser = new pb::MessageParser<Value>(() => new Value());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Value> Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Tensorflow.Summary.Descriptor.NestedTypes[2]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Value() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Value(Value other) : this() {
- nodeName_ = other.nodeName_;
- tag_ = other.tag_;
- metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null;
- switch (other.ValueCase) {
- case ValueOneofCase.SimpleValue:
- SimpleValue = other.SimpleValue;
- break;
- case ValueOneofCase.ObsoleteOldStyleHistogram:
- ObsoleteOldStyleHistogram = other.ObsoleteOldStyleHistogram;
- break;
- case ValueOneofCase.Image:
- Image = other.Image.Clone();
- break;
- case ValueOneofCase.Histo:
- Histo = other.Histo.Clone();
- break;
- case ValueOneofCase.Audio:
- Audio = other.Audio.Clone();
- break;
- case ValueOneofCase.Tensor:
- Tensor = other.Tensor.Clone();
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Value Clone() {
- return new Value(this);
- }
-
- /// <summary>Field number for the "node_name" field.</summary>
- public const int NodeNameFieldNumber = 7;
- private string nodeName_ = "";
- /// <summary>
- /// This field is deprecated and will not be set.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string NodeName {
- get { return nodeName_; }
- set {
- nodeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "tag" field.</summary>
- public const int TagFieldNumber = 1;
- private string tag_ = "";
- /// <summary>
- /// Tag name for the data. Used by TensorBoard plugins to organize data. Tags
- /// are often organized by scope (which contains slashes to convey
- /// hierarchy). For example: foo/bar/0
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Tag {
- get { return tag_; }
- set {
- tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// <summary>Field number for the "metadata" field.</summary>
- public const int MetadataFieldNumber = 9;
- private global::Tensorflow.SummaryMetadata metadata_;
- /// <summary>
- /// Contains metadata on the summary value such as which plugins may use it.
- /// Take note that many summary values may lack a metadata field. This is
- /// because the FileWriter only keeps a metadata object on the first summary
- /// value with a certain tag for each tag. TensorBoard then remembers which
- /// tags are associated with which plugins. This saves space.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.SummaryMetadata Metadata {
- get { return metadata_; }
- set {
- metadata_ = value;
- }
- }
-
- /// <summary>Field number for the "simple_value" field.</summary>
- public const int SimpleValueFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float SimpleValue {
- get { return valueCase_ == ValueOneofCase.SimpleValue ? (float) value_ : 0F; }
- set {
- value_ = value;
- valueCase_ = ValueOneofCase.SimpleValue;
- }
- }
-
- /// <summary>Field number for the "obsolete_old_style_histogram" field.</summary>
- public const int ObsoleteOldStyleHistogramFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pb::ByteString ObsoleteOldStyleHistogram {
- get { return valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram ? (pb::ByteString) value_ : pb::ByteString.Empty; }
- set {
- value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- valueCase_ = ValueOneofCase.ObsoleteOldStyleHistogram;
- }
- }
-
- /// <summary>Field number for the "image" field.</summary>
- public const int ImageFieldNumber = 4;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Summary.Types.Image Image {
- get { return valueCase_ == ValueOneofCase.Image ? (global::Tensorflow.Summary.Types.Image) value_ : null; }
- set {
- value_ = value;
- valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Image;
- }
- }
-
- /// <summary>Field number for the "histo" field.</summary>
- public const int HistoFieldNumber = 5;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.HistogramProto Histo {
- get { return valueCase_ == ValueOneofCase.Histo ? (global::Tensorflow.HistogramProto) value_ : null; }
- set {
- value_ = value;
- valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Histo;
- }
- }
-
- /// <summary>Field number for the "audio" field.</summary>
- public const int AudioFieldNumber = 6;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Summary.Types.Audio Audio {
- get { return valueCase_ == ValueOneofCase.Audio ? (global::Tensorflow.Summary.Types.Audio) value_ : null; }
- set {
- value_ = value;
- valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Audio;
- }
- }
-
- /// <summary>Field number for the "tensor" field.</summary>
- public const int TensorFieldNumber = 8;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.TensorProto Tensor {
- get { return valueCase_ == ValueOneofCase.Tensor ? (global::Tensorflow.TensorProto) value_ : null; }
- set {
- value_ = value;
- valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Tensor;
- }
- }
-
- private object value_;
- /// <summary>Enum of possible cases for the "value" oneof.</summary>
- public enum ValueOneofCase {
- None = 0,
- SimpleValue = 2,
- ObsoleteOldStyleHistogram = 3,
- Image = 4,
- Histo = 5,
- Audio = 6,
- Tensor = 8,
- }
- private ValueOneofCase valueCase_ = ValueOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ValueOneofCase ValueCase {
- get { return valueCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearValue() {
- valueCase_ = ValueOneofCase.None;
- value_ = null;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as Value);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Value other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (NodeName != other.NodeName) return false;
- if (Tag != other.Tag) return false;
- if (!object.Equals(Metadata, other.Metadata)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SimpleValue, other.SimpleValue)) return false;
- if (ObsoleteOldStyleHistogram != other.ObsoleteOldStyleHistogram) return false;
- if (!object.Equals(Image, other.Image)) return false;
- if (!object.Equals(Histo, other.Histo)) return false;
- if (!object.Equals(Audio, other.Audio)) return false;
- if (!object.Equals(Tensor, other.Tensor)) return false;
- if (ValueCase != other.ValueCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (NodeName.Length != 0) hash ^= NodeName.GetHashCode();
- if (Tag.Length != 0) hash ^= Tag.GetHashCode();
- if (metadata_ != null) hash ^= Metadata.GetHashCode();
- if (valueCase_ == ValueOneofCase.SimpleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SimpleValue);
- if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) hash ^= ObsoleteOldStyleHistogram.GetHashCode();
- if (valueCase_ == ValueOneofCase.Image) hash ^= Image.GetHashCode();
- if (valueCase_ == ValueOneofCase.Histo) hash ^= Histo.GetHashCode();
- if (valueCase_ == ValueOneofCase.Audio) hash ^= Audio.GetHashCode();
- if (valueCase_ == ValueOneofCase.Tensor) hash ^= Tensor.GetHashCode();
- hash ^= (int) valueCase_;
- if (_unknownFields != null) {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Tag.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Tag);
- }
- if (valueCase_ == ValueOneofCase.SimpleValue) {
- output.WriteRawTag(21);
- output.WriteFloat(SimpleValue);
- }
- if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) {
- output.WriteRawTag(26);
- output.WriteBytes(ObsoleteOldStyleHistogram);
- }
- if (valueCase_ == ValueOneofCase.Image) {
- output.WriteRawTag(34);
- output.WriteMessage(Image);
- }
- if (valueCase_ == ValueOneofCase.Histo) {
- output.WriteRawTag(42);
- output.WriteMessage(Histo);
- }
- if (valueCase_ == ValueOneofCase.Audio) {
- output.WriteRawTag(50);
- output.WriteMessage(Audio);
- }
- if (NodeName.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(NodeName);
- }
- if (valueCase_ == ValueOneofCase.Tensor) {
- output.WriteRawTag(66);
- output.WriteMessage(Tensor);
- }
- if (metadata_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(Metadata);
- }
- if (_unknownFields != null) {
- _unknownFields.WriteTo(output);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (NodeName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(NodeName);
- }
- if (Tag.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag);
- }
- if (metadata_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata);
- }
- if (valueCase_ == ValueOneofCase.SimpleValue) {
- size += 1 + 4;
- }
- if (valueCase_ == ValueOneofCase.ObsoleteOldStyleHistogram) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(ObsoleteOldStyleHistogram);
- }
- if (valueCase_ == ValueOneofCase.Image) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Image);
- }
- if (valueCase_ == ValueOneofCase.Histo) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Histo);
- }
- if (valueCase_ == ValueOneofCase.Audio) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audio);
- }
- if (valueCase_ == ValueOneofCase.Tensor) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Tensor);
- }
- if (_unknownFields != null) {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Value other) {
- if (other == null) {
- return;
- }
- if (other.NodeName.Length != 0) {
- NodeName = other.NodeName;
- }
- if (other.Tag.Length != 0) {
- Tag = other.Tag;
- }
- if (other.metadata_ != null) {
- if (metadata_ == null) {
- Metadata = new global::Tensorflow.SummaryMetadata();
- }
- Metadata.MergeFrom(other.Metadata);
- }
- switch (other.ValueCase) {
- case ValueOneofCase.SimpleValue:
- SimpleValue = other.SimpleValue;
- break;
- case ValueOneofCase.ObsoleteOldStyleHistogram:
- ObsoleteOldStyleHistogram = other.ObsoleteOldStyleHistogram;
- break;
- case ValueOneofCase.Image:
- if (Image == null) {
- Image = new global::Tensorflow.Summary.Types.Image();
- }
- Image.MergeFrom(other.Image);
- break;
- case ValueOneofCase.Histo:
- if (Histo == null) {
- Histo = new global::Tensorflow.HistogramProto();
- }
- Histo.MergeFrom(other.Histo);
- break;
- case ValueOneofCase.Audio:
- if (Audio == null) {
- Audio = new global::Tensorflow.Summary.Types.Audio();
- }
- Audio.MergeFrom(other.Audio);
- break;
- case ValueOneofCase.Tensor:
- if (Tensor == null) {
- Tensor = new global::Tensorflow.TensorProto();
- }
- Tensor.MergeFrom(other.Tensor);
- break;
- }
-
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10: {
- Tag = input.ReadString();
- break;
- }
- case 21: {
- SimpleValue = input.ReadFloat();
- break;
- }
- case 26: {
- ObsoleteOldStyleHistogram = input.ReadBytes();
- break;
- }
- case 34: {
- global::Tensorflow.Summary.Types.Image subBuilder = new global::Tensorflow.Summary.Types.Image();
- if (valueCase_ == ValueOneofCase.Image) {
- subBuilder.MergeFrom(Image);
- }
- input.ReadMessage(subBuilder);
- Image = subBuilder;
- break;
- }
- case 42: {
- global::Tensorflow.HistogramProto subBuilder = new global::Tensorflow.HistogramProto();
- if (valueCase_ == ValueOneofCase.Histo) {
- subBuilder.MergeFrom(Histo);
- }
- input.ReadMessage(subBuilder);
- Histo = subBuilder;
- break;
- }
- case 50: {
- global::Tensorflow.Summary.Types.Audio subBuilder = new global::Tensorflow.Summary.Types.Audio();
- if (valueCase_ == ValueOneofCase.Audio) {
- subBuilder.MergeFrom(Audio);
- }
- input.ReadMessage(subBuilder);
- Audio = subBuilder;
- break;
- }
- case 58: {
- NodeName = input.ReadString();
- break;
- }
- case 66: {
- global::Tensorflow.TensorProto subBuilder = new global::Tensorflow.TensorProto();
- if (valueCase_ == ValueOneofCase.Tensor) {
- subBuilder.MergeFrom(Tensor);
- }
- input.ReadMessage(subBuilder);
- Tensor = subBuilder;
- break;
- }
- case 74: {
- if (metadata_ == null) {
- Metadata = new global::Tensorflow.SummaryMetadata();
- }
- input.ReadMessage(Metadata);
- break;
- }
- }
- }
- }
-
- }
-
- }
- #endregion
-
- }
-
- #endregion
-
- }
-
- #endregion Designer generated code
|