// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/framework/cost_graph.proto // #pragma warning disable 1591, 0612, 3021, 8981 #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 { /// Holder for reflection information generated from tensorflow/core/framework/cost_graph.proto public static partial class CostGraphReflection { #region Descriptor /// File descriptor for tensorflow/core/framework/cost_graph.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CostGraphReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Nvc3RfZ3JhcGgucHJvdG8S", "CnRlbnNvcmZsb3caLHRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29y", "X3NoYXBlLnByb3RvGiV0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3R5cGVz", "LnByb3RvIsoGCgxDb3N0R3JhcGhEZWYSKwoEbm9kZRgBIAMoCzIdLnRlbnNv", "cmZsb3cuQ29zdEdyYXBoRGVmLk5vZGUSNQoEY29zdBgCIAMoCzInLnRlbnNv", "cmZsb3cuQ29zdEdyYXBoRGVmLkFnZ3JlZ2F0ZWRDb3N0GqIFCgROb2RlEgwK", "BG5hbWUYASABKAkSDgoGZGV2aWNlGAIgASgJEgoKAmlkGAMgASgFEjsKCmlu", "cHV0X2luZm8YBCADKAsyJy50ZW5zb3JmbG93LkNvc3RHcmFwaERlZi5Ob2Rl", "LklucHV0SW5mbxI9CgtvdXRwdXRfaW5mbxgFIAMoCzIoLnRlbnNvcmZsb3cu", "Q29zdEdyYXBoRGVmLk5vZGUuT3V0cHV0SW5mbxIdChV0ZW1wb3JhcnlfbWVt", "b3J5X3NpemUYBiABKAMSHgoWcGVyc2lzdGVudF9tZW1vcnlfc2l6ZRgMIAEo", "AxIhChVob3N0X3RlbXBfbWVtb3J5X3NpemUYCiABKANCAhgBEiMKF2Rldmlj", "ZV90ZW1wX21lbW9yeV9zaXplGAsgASgDQgIYARIpCh1kZXZpY2VfcGVyc2lz", "dGVudF9tZW1vcnlfc2l6ZRgQIAEoA0ICGAESFAoMY29tcHV0ZV9jb3N0GAkg", "ASgDEhQKDGNvbXB1dGVfdGltZRgOIAEoAxITCgttZW1vcnlfdGltZRgPIAEo", "AxIQCghpc19maW5hbBgHIAEoCBIVCg1jb250cm9sX2lucHV0GAggAygFEhIK", "CmluYWNjdXJhdGUYESABKAgaOwoJSW5wdXRJbmZvEhYKDnByZWNlZGluZ19u", "b2RlGAEgASgFEhYKDnByZWNlZGluZ19wb3J0GAIgASgFGoYBCgpPdXRwdXRJ", "bmZvEgwKBHNpemUYASABKAMSGAoQYWxpYXNfaW5wdXRfcG9ydBgCIAEoAxIr", "CgVzaGFwZRgDIAEoCzIcLnRlbnNvcmZsb3cuVGVuc29yU2hhcGVQcm90bxIj", "CgVkdHlwZRgEIAEoDjIULnRlbnNvcmZsb3cuRGF0YVR5cGUaMQoOQWdncmVn", "YXRlZENvc3QSDAoEY29zdBgBIAEoAhIRCglkaW1lbnNpb24YAiABKAlCgwEK", "GG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0IPQ29zdEdyYXBoUHJvdG9zUAFa", "UWdpdGh1Yi5jb20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cv", "Z28vY29yZS9mcmFtZXdvcmsvY29zdF9ncmFwaF9nb19wcm90b/gBAWIGcHJv", "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tensorflow.TensorShapeReflection.Descriptor, global::Tensorflow.TypesReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef), global::Tensorflow.CostGraphDef.Parser, new[]{ "Node", "Cost" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node), global::Tensorflow.CostGraphDef.Types.Node.Parser, new[]{ "Name", "Device", "Id", "InputInfo", "OutputInfo", "TemporaryMemorySize", "PersistentMemorySize", "HostTempMemorySize", "DeviceTempMemorySize", "DevicePersistentMemorySize", "ComputeCost", "ComputeTime", "MemoryTime", "IsFinal", "ControlInput", "Inaccurate" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo), global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo.Parser, new[]{ "PrecedingNode", "PrecedingPort" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo), global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo.Parser, new[]{ "Size", "AliasInputPort", "Shape", "Dtype" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CostGraphDef.Types.AggregatedCost), global::Tensorflow.CostGraphDef.Types.AggregatedCost.Parser, new[]{ "Cost", "Dimension" }, null, null, null, null)}) })); } #endregion } #region Messages public sealed partial class CostGraphDef : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CostGraphDef()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CostGraphReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CostGraphDef() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CostGraphDef(CostGraphDef other) : this() { node_ = other.node_.Clone(); cost_ = other.cost_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CostGraphDef Clone() { return new CostGraphDef(this); } /// Field number for the "node" field. public const int NodeFieldNumber = 1; private static readonly pb::FieldCodec _repeated_node_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.CostGraphDef.Types.Node.Parser); private readonly pbc::RepeatedField node_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Node { get { return node_; } } /// Field number for the "cost" field. public const int CostFieldNumber = 2; private static readonly pb::FieldCodec _repeated_cost_codec = pb::FieldCodec.ForMessage(18, global::Tensorflow.CostGraphDef.Types.AggregatedCost.Parser); private readonly pbc::RepeatedField cost_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Cost { get { return cost_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CostGraphDef); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CostGraphDef other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!node_.Equals(other.node_)) return false; if(!cost_.Equals(other.cost_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= node_.GetHashCode(); hash ^= cost_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else node_.WriteTo(output, _repeated_node_codec); cost_.WriteTo(output, _repeated_cost_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { node_.WriteTo(ref output, _repeated_node_codec); cost_.WriteTo(ref output, _repeated_cost_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += node_.CalculateSize(_repeated_node_codec); size += cost_.CalculateSize(_repeated_cost_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CostGraphDef other) { if (other == null) { return; } node_.Add(other.node_); cost_.Add(other.cost_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { node_.AddEntriesFrom(input, _repeated_node_codec); break; } case 18: { cost_.AddEntriesFrom(input, _repeated_cost_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { node_.AddEntriesFrom(ref input, _repeated_node_codec); break; } case 18: { cost_.AddEntriesFrom(ref input, _repeated_cost_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the CostGraphDef message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { public sealed partial class Node : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Node()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CostGraphDef.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Node() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Node(Node other) : this() { name_ = other.name_; device_ = other.device_; id_ = other.id_; inputInfo_ = other.inputInfo_.Clone(); outputInfo_ = other.outputInfo_.Clone(); temporaryMemorySize_ = other.temporaryMemorySize_; persistentMemorySize_ = other.persistentMemorySize_; hostTempMemorySize_ = other.hostTempMemorySize_; deviceTempMemorySize_ = other.deviceTempMemorySize_; devicePersistentMemorySize_ = other.devicePersistentMemorySize_; computeCost_ = other.computeCost_; computeTime_ = other.computeTime_; memoryTime_ = other.memoryTime_; isFinal_ = other.isFinal_; controlInput_ = other.controlInput_.Clone(); inaccurate_ = other.inaccurate_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Node Clone() { return new Node(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// /// The name of the node. Names are globally unique. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device" field. public const int DeviceFieldNumber = 2; private string device_ = ""; /// /// The device of the node. Can be empty if the node is mapped to the /// default partition or partitioning hasn't been run yet. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Device { get { return device_; } set { device_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "id" field. public const int IdFieldNumber = 3; private int id_; /// /// The id of the node. Node ids are only unique inside a partition. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "input_info" field. public const int InputInfoFieldNumber = 4; private static readonly pb::FieldCodec _repeated_inputInfo_codec = pb::FieldCodec.ForMessage(34, global::Tensorflow.CostGraphDef.Types.Node.Types.InputInfo.Parser); private readonly pbc::RepeatedField inputInfo_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField InputInfo { get { return inputInfo_; } } /// Field number for the "output_info" field. public const int OutputInfoFieldNumber = 5; private static readonly pb::FieldCodec _repeated_outputInfo_codec = pb::FieldCodec.ForMessage(42, global::Tensorflow.CostGraphDef.Types.Node.Types.OutputInfo.Parser); private readonly pbc::RepeatedField outputInfo_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField OutputInfo { get { return outputInfo_; } } /// Field number for the "temporary_memory_size" field. public const int TemporaryMemorySizeFieldNumber = 6; private long temporaryMemorySize_; /// /// Temporary memory used by this node. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TemporaryMemorySize { get { return temporaryMemorySize_; } set { temporaryMemorySize_ = value; } } /// Field number for the "persistent_memory_size" field. public const int PersistentMemorySizeFieldNumber = 12; private long persistentMemorySize_; /// /// Persistent memory used by this node. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long PersistentMemorySize { get { return persistentMemorySize_; } set { persistentMemorySize_ = value; } } /// Field number for the "host_temp_memory_size" field. public const int HostTempMemorySizeFieldNumber = 10; private long hostTempMemorySize_; [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long HostTempMemorySize { get { return hostTempMemorySize_; } set { hostTempMemorySize_ = value; } } /// Field number for the "device_temp_memory_size" field. public const int DeviceTempMemorySizeFieldNumber = 11; private long deviceTempMemorySize_; [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long DeviceTempMemorySize { get { return deviceTempMemorySize_; } set { deviceTempMemorySize_ = value; } } /// Field number for the "device_persistent_memory_size" field. public const int DevicePersistentMemorySizeFieldNumber = 16; private long devicePersistentMemorySize_; [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long DevicePersistentMemorySize { get { return devicePersistentMemorySize_; } set { devicePersistentMemorySize_ = value; } } /// Field number for the "compute_cost" field. public const int ComputeCostFieldNumber = 9; private long computeCost_; /// /// Estimate of the computational cost of this node, in microseconds. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ComputeCost { get { return computeCost_; } set { computeCost_ = value; } } /// Field number for the "compute_time" field. public const int ComputeTimeFieldNumber = 14; private long computeTime_; /// /// Analytical estimate of the computational cost of this node, in /// microseconds. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long ComputeTime { get { return computeTime_; } set { computeTime_ = value; } } /// Field number for the "memory_time" field. public const int MemoryTimeFieldNumber = 15; private long memoryTime_; /// /// Analytical estimate of the memory access cost of this node, in /// microseconds. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long MemoryTime { get { return memoryTime_; } set { memoryTime_ = value; } } /// Field number for the "is_final" field. public const int IsFinalFieldNumber = 7; private bool isFinal_; /// /// If true, the output is permanent: it can't be discarded, because this /// node is part of the "final output". Nodes may depend on final nodes. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsFinal { get { return isFinal_; } set { isFinal_ = value; } } /// Field number for the "control_input" field. public const int ControlInputFieldNumber = 8; private static readonly pb::FieldCodec _repeated_controlInput_codec = pb::FieldCodec.ForInt32(66); private readonly pbc::RepeatedField controlInput_ = new pbc::RepeatedField(); /// /// Ids of the control inputs for this node. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ControlInput { get { return controlInput_; } } /// Field number for the "inaccurate" field. public const int InaccurateFieldNumber = 17; private bool inaccurate_; /// /// Are the costs inaccurate? /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Inaccurate { get { return inaccurate_; } set { inaccurate_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Node); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Node other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (Device != other.Device) return false; if (Id != other.Id) return false; if(!inputInfo_.Equals(other.inputInfo_)) return false; if(!outputInfo_.Equals(other.outputInfo_)) return false; if (TemporaryMemorySize != other.TemporaryMemorySize) return false; if (PersistentMemorySize != other.PersistentMemorySize) return false; if (HostTempMemorySize != other.HostTempMemorySize) return false; if (DeviceTempMemorySize != other.DeviceTempMemorySize) return false; if (DevicePersistentMemorySize != other.DevicePersistentMemorySize) return false; if (ComputeCost != other.ComputeCost) return false; if (ComputeTime != other.ComputeTime) return false; if (MemoryTime != other.MemoryTime) return false; if (IsFinal != other.IsFinal) return false; if(!controlInput_.Equals(other.controlInput_)) return false; if (Inaccurate != other.Inaccurate) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Device.Length != 0) hash ^= Device.GetHashCode(); if (Id != 0) hash ^= Id.GetHashCode(); hash ^= inputInfo_.GetHashCode(); hash ^= outputInfo_.GetHashCode(); if (TemporaryMemorySize != 0L) hash ^= TemporaryMemorySize.GetHashCode(); if (PersistentMemorySize != 0L) hash ^= PersistentMemorySize.GetHashCode(); if (HostTempMemorySize != 0L) hash ^= HostTempMemorySize.GetHashCode(); if (DeviceTempMemorySize != 0L) hash ^= DeviceTempMemorySize.GetHashCode(); if (DevicePersistentMemorySize != 0L) hash ^= DevicePersistentMemorySize.GetHashCode(); if (ComputeCost != 0L) hash ^= ComputeCost.GetHashCode(); if (ComputeTime != 0L) hash ^= ComputeTime.GetHashCode(); if (MemoryTime != 0L) hash ^= MemoryTime.GetHashCode(); if (IsFinal != false) hash ^= IsFinal.GetHashCode(); hash ^= controlInput_.GetHashCode(); if (Inaccurate != false) hash ^= Inaccurate.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (Device.Length != 0) { output.WriteRawTag(18); output.WriteString(Device); } if (Id != 0) { output.WriteRawTag(24); output.WriteInt32(Id); } inputInfo_.WriteTo(output, _repeated_inputInfo_codec); outputInfo_.WriteTo(output, _repeated_outputInfo_codec); if (TemporaryMemorySize != 0L) { output.WriteRawTag(48); output.WriteInt64(TemporaryMemorySize); } if (IsFinal != false) { output.WriteRawTag(56); output.WriteBool(IsFinal); } controlInput_.WriteTo(output, _repeated_controlInput_codec); if (ComputeCost != 0L) { output.WriteRawTag(72); output.WriteInt64(ComputeCost); } if (HostTempMemorySize != 0L) { output.WriteRawTag(80); output.WriteInt64(HostTempMemorySize); } if (DeviceTempMemorySize != 0L) { output.WriteRawTag(88); output.WriteInt64(DeviceTempMemorySize); } if (PersistentMemorySize != 0L) { output.WriteRawTag(96); output.WriteInt64(PersistentMemorySize); } if (ComputeTime != 0L) { output.WriteRawTag(112); output.WriteInt64(ComputeTime); } if (MemoryTime != 0L) { output.WriteRawTag(120); output.WriteInt64(MemoryTime); } if (DevicePersistentMemorySize != 0L) { output.WriteRawTag(128, 1); output.WriteInt64(DevicePersistentMemorySize); } if (Inaccurate != false) { output.WriteRawTag(136, 1); output.WriteBool(Inaccurate); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (Device.Length != 0) { output.WriteRawTag(18); output.WriteString(Device); } if (Id != 0) { output.WriteRawTag(24); output.WriteInt32(Id); } inputInfo_.WriteTo(ref output, _repeated_inputInfo_codec); outputInfo_.WriteTo(ref output, _repeated_outputInfo_codec); if (TemporaryMemorySize != 0L) { output.WriteRawTag(48); output.WriteInt64(TemporaryMemorySize); } if (IsFinal != false) { output.WriteRawTag(56); output.WriteBool(IsFinal); } controlInput_.WriteTo(ref output, _repeated_controlInput_codec); if (ComputeCost != 0L) { output.WriteRawTag(72); output.WriteInt64(ComputeCost); } if (HostTempMemorySize != 0L) { output.WriteRawTag(80); output.WriteInt64(HostTempMemorySize); } if (DeviceTempMemorySize != 0L) { output.WriteRawTag(88); output.WriteInt64(DeviceTempMemorySize); } if (PersistentMemorySize != 0L) { output.WriteRawTag(96); output.WriteInt64(PersistentMemorySize); } if (ComputeTime != 0L) { output.WriteRawTag(112); output.WriteInt64(ComputeTime); } if (MemoryTime != 0L) { output.WriteRawTag(120); output.WriteInt64(MemoryTime); } if (DevicePersistentMemorySize != 0L) { output.WriteRawTag(128, 1); output.WriteInt64(DevicePersistentMemorySize); } if (Inaccurate != false) { output.WriteRawTag(136, 1); output.WriteBool(Inaccurate); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (Device.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Device); } if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } size += inputInfo_.CalculateSize(_repeated_inputInfo_codec); size += outputInfo_.CalculateSize(_repeated_outputInfo_codec); if (TemporaryMemorySize != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TemporaryMemorySize); } if (PersistentMemorySize != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(PersistentMemorySize); } if (HostTempMemorySize != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(HostTempMemorySize); } if (DeviceTempMemorySize != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(DeviceTempMemorySize); } if (DevicePersistentMemorySize != 0L) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(DevicePersistentMemorySize); } if (ComputeCost != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(ComputeCost); } if (ComputeTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(ComputeTime); } if (MemoryTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(MemoryTime); } if (IsFinal != false) { size += 1 + 1; } size += controlInput_.CalculateSize(_repeated_controlInput_codec); if (Inaccurate != false) { size += 2 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Node other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Device.Length != 0) { Device = other.Device; } if (other.Id != 0) { Id = other.Id; } inputInfo_.Add(other.inputInfo_); outputInfo_.Add(other.outputInfo_); if (other.TemporaryMemorySize != 0L) { TemporaryMemorySize = other.TemporaryMemorySize; } if (other.PersistentMemorySize != 0L) { PersistentMemorySize = other.PersistentMemorySize; } if (other.HostTempMemorySize != 0L) { HostTempMemorySize = other.HostTempMemorySize; } if (other.DeviceTempMemorySize != 0L) { DeviceTempMemorySize = other.DeviceTempMemorySize; } if (other.DevicePersistentMemorySize != 0L) { DevicePersistentMemorySize = other.DevicePersistentMemorySize; } if (other.ComputeCost != 0L) { ComputeCost = other.ComputeCost; } if (other.ComputeTime != 0L) { ComputeTime = other.ComputeTime; } if (other.MemoryTime != 0L) { MemoryTime = other.MemoryTime; } if (other.IsFinal != false) { IsFinal = other.IsFinal; } controlInput_.Add(other.controlInput_); if (other.Inaccurate != false) { Inaccurate = other.Inaccurate; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { Device = input.ReadString(); break; } case 24: { Id = input.ReadInt32(); break; } case 34: { inputInfo_.AddEntriesFrom(input, _repeated_inputInfo_codec); break; } case 42: { outputInfo_.AddEntriesFrom(input, _repeated_outputInfo_codec); break; } case 48: { TemporaryMemorySize = input.ReadInt64(); break; } case 56: { IsFinal = input.ReadBool(); break; } case 66: case 64: { controlInput_.AddEntriesFrom(input, _repeated_controlInput_codec); break; } case 72: { ComputeCost = input.ReadInt64(); break; } case 80: { HostTempMemorySize = input.ReadInt64(); break; } case 88: { DeviceTempMemorySize = input.ReadInt64(); break; } case 96: { PersistentMemorySize = input.ReadInt64(); break; } case 112: { ComputeTime = input.ReadInt64(); break; } case 120: { MemoryTime = input.ReadInt64(); break; } case 128: { DevicePersistentMemorySize = input.ReadInt64(); break; } case 136: { Inaccurate = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { Device = input.ReadString(); break; } case 24: { Id = input.ReadInt32(); break; } case 34: { inputInfo_.AddEntriesFrom(ref input, _repeated_inputInfo_codec); break; } case 42: { outputInfo_.AddEntriesFrom(ref input, _repeated_outputInfo_codec); break; } case 48: { TemporaryMemorySize = input.ReadInt64(); break; } case 56: { IsFinal = input.ReadBool(); break; } case 66: case 64: { controlInput_.AddEntriesFrom(ref input, _repeated_controlInput_codec); break; } case 72: { ComputeCost = input.ReadInt64(); break; } case 80: { HostTempMemorySize = input.ReadInt64(); break; } case 88: { DeviceTempMemorySize = input.ReadInt64(); break; } case 96: { PersistentMemorySize = input.ReadInt64(); break; } case 112: { ComputeTime = input.ReadInt64(); break; } case 120: { MemoryTime = input.ReadInt64(); break; } case 128: { DevicePersistentMemorySize = input.ReadInt64(); break; } case 136: { Inaccurate = input.ReadBool(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Node message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Inputs of this node. They must be executed before this node can be /// executed. An input is a particular output of another node, specified /// by the node id and the output index. /// public sealed partial class InputInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CostGraphDef.Types.Node.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InputInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InputInfo(InputInfo other) : this() { precedingNode_ = other.precedingNode_; precedingPort_ = other.precedingPort_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InputInfo Clone() { return new InputInfo(this); } /// Field number for the "preceding_node" field. public const int PrecedingNodeFieldNumber = 1; private int precedingNode_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PrecedingNode { get { return precedingNode_; } set { precedingNode_ = value; } } /// Field number for the "preceding_port" field. public const int PrecedingPortFieldNumber = 2; private int precedingPort_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PrecedingPort { get { return precedingPort_; } set { precedingPort_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InputInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InputInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PrecedingNode != other.PrecedingNode) return false; if (PrecedingPort != other.PrecedingPort) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (PrecedingNode != 0) hash ^= PrecedingNode.GetHashCode(); if (PrecedingPort != 0) hash ^= PrecedingPort.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (PrecedingNode != 0) { output.WriteRawTag(8); output.WriteInt32(PrecedingNode); } if (PrecedingPort != 0) { output.WriteRawTag(16); output.WriteInt32(PrecedingPort); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (PrecedingNode != 0) { output.WriteRawTag(8); output.WriteInt32(PrecedingNode); } if (PrecedingPort != 0) { output.WriteRawTag(16); output.WriteInt32(PrecedingPort); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (PrecedingNode != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrecedingNode); } if (PrecedingPort != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrecedingPort); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InputInfo other) { if (other == null) { return; } if (other.PrecedingNode != 0) { PrecedingNode = other.PrecedingNode; } if (other.PrecedingPort != 0) { PrecedingPort = other.PrecedingPort; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { PrecedingNode = input.ReadInt32(); break; } case 16: { PrecedingPort = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { PrecedingNode = input.ReadInt32(); break; } case 16: { PrecedingPort = input.ReadInt32(); break; } } } } #endif } /// /// Outputs of this node. /// public sealed partial class OutputInfo : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutputInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CostGraphDef.Types.Node.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutputInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutputInfo(OutputInfo other) : this() { size_ = other.size_; aliasInputPort_ = other.aliasInputPort_; shape_ = other.shape_ != null ? other.shape_.Clone() : null; dtype_ = other.dtype_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OutputInfo Clone() { return new OutputInfo(this); } /// Field number for the "size" field. public const int SizeFieldNumber = 1; private long size_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Size { get { return size_; } set { size_ = value; } } /// Field number for the "alias_input_port" field. public const int AliasInputPortFieldNumber = 2; private long aliasInputPort_; /// /// If >= 0, the output is an alias of an input. Note that an alias input /// may itself be an alias. The algorithm will therefore need to follow /// those pointers. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long AliasInputPort { get { return aliasInputPort_; } set { aliasInputPort_ = value; } } /// Field number for the "shape" field. public const int ShapeFieldNumber = 3; private global::Tensorflow.TensorShapeProto shape_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } /// Field number for the "dtype" field. public const int DtypeFieldNumber = 4; private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OutputInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OutputInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Size != other.Size) return false; if (AliasInputPort != other.AliasInputPort) return false; if (!object.Equals(Shape, other.Shape)) return false; if (Dtype != other.Dtype) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Size != 0L) hash ^= Size.GetHashCode(); if (AliasInputPort != 0L) hash ^= AliasInputPort.GetHashCode(); if (shape_ != null) hash ^= Shape.GetHashCode(); if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Size != 0L) { output.WriteRawTag(8); output.WriteInt64(Size); } if (AliasInputPort != 0L) { output.WriteRawTag(16); output.WriteInt64(AliasInputPort); } if (shape_ != null) { output.WriteRawTag(26); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(32); output.WriteEnum((int) Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Size != 0L) { output.WriteRawTag(8); output.WriteInt64(Size); } if (AliasInputPort != 0L) { output.WriteRawTag(16); output.WriteInt64(AliasInputPort); } if (shape_ != null) { output.WriteRawTag(26); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(32); output.WriteEnum((int) Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Size != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Size); } if (AliasInputPort != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(AliasInputPort); } if (shape_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OutputInfo other) { if (other == null) { return; } if (other.Size != 0L) { Size = other.Size; } if (other.AliasInputPort != 0L) { AliasInputPort = other.AliasInputPort; } if (other.shape_ != null) { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != global::Tensorflow.DataType.DtInvalid) { Dtype = other.Dtype; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Size = input.ReadInt64(); break; } case 16: { AliasInputPort = input.ReadInt64(); break; } case 26: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 32: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Size = input.ReadInt64(); break; } case 16: { AliasInputPort = input.ReadInt64(); break; } case 26: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 32: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } } } } #endif } } #endregion } /// /// Total cost of this graph, typically used for balancing decisions. /// public sealed partial class AggregatedCost : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AggregatedCost()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.CostGraphDef.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AggregatedCost() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AggregatedCost(AggregatedCost other) : this() { cost_ = other.cost_; dimension_ = other.dimension_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AggregatedCost Clone() { return new AggregatedCost(this); } /// Field number for the "cost" field. public const int CostFieldNumber = 1; private float cost_; /// /// Aggregated cost value. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Cost { get { return cost_; } set { cost_ = value; } } /// Field number for the "dimension" field. public const int DimensionFieldNumber = 2; private string dimension_ = ""; /// /// Aggregated cost dimension (e.g. 'memory', 'compute', 'network'). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Dimension { get { return dimension_; } set { dimension_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AggregatedCost); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AggregatedCost other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Cost, other.Cost)) return false; if (Dimension != other.Dimension) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Cost != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Cost); if (Dimension.Length != 0) hash ^= Dimension.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Cost != 0F) { output.WriteRawTag(13); output.WriteFloat(Cost); } if (Dimension.Length != 0) { output.WriteRawTag(18); output.WriteString(Dimension); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Cost != 0F) { output.WriteRawTag(13); output.WriteFloat(Cost); } if (Dimension.Length != 0) { output.WriteRawTag(18); output.WriteString(Dimension); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Cost != 0F) { size += 1 + 4; } if (Dimension.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Dimension); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AggregatedCost other) { if (other == null) { return; } if (other.Cost != 0F) { Cost = other.Cost; } if (other.Dimension.Length != 0) { Dimension = other.Dimension; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Cost = input.ReadFloat(); break; } case 18: { Dimension = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Cost = input.ReadFloat(); break; } case 18: { Dimension = input.ReadString(); break; } } } } #endif } } #endregion } #endregion } #endregion Designer generated code