| @@ -106,7 +106,9 @@ namespace Tensorflow.Checkpoint | |||
| { | |||
| var td = trackable_data[i]; | |||
| Debug.Assert(td.node_id == i); | |||
| object_graph_proto.Nodes.Add(new TrackableObjectGraph.Types.TrackableObject(td.slot_variable_proto, td.children_proto)); | |||
| TrackableObjectGraph.Types.TrackableObject trackable_object = new(); | |||
| trackable_object.SlotVariables.AddRange(td.slot_variable_proto); | |||
| trackable_object.Children.AddRange(td.children_proto); | |||
| } | |||
| return object_graph_proto; | |||
| } | |||
| @@ -110,14 +110,10 @@ public static class SaveUtilV1 | |||
| { | |||
| var trackable = trackable_objects[i]; | |||
| Debug.Assert(node_ids[trackable] == i); | |||
| TrackableObjectGraph.Types.TrackableObject object_proto; | |||
| var object_proto = new TrackableObjectGraph.Types.TrackableObject(); | |||
| if (slot_variables.TryGetValue(trackable, out var slots)) | |||
| { | |||
| object_proto = new TrackableObjectGraph.Types.TrackableObject(slots); | |||
| } | |||
| else | |||
| { | |||
| object_proto = new TrackableObjectGraph.Types.TrackableObject(); | |||
| object_proto.SlotVariables.AddRange(slots); | |||
| } | |||
| object_graph_proto.Nodes.Add(object_proto); | |||
| foreach (var child in graph_view.list_children(trackable)) | |||
| @@ -34,14 +34,14 @@ namespace Tensorflow.Functions | |||
| public TensorSpec[] OutputStructure; | |||
| public IEnumerable<string> ArgKeywords { get; set; } | |||
| public long NumPositionArgs { get; set; } | |||
| public FunctionDef FunctionDef => _delayed_rewrite_functions.Forward().Definition; | |||
| public ConcreteFunction(string name) | |||
| { | |||
| func_graph = new FuncGraph(name); | |||
| _captured_inputs = func_graph.external_captures; | |||
| _attrs= new Dictionary<string, string>(); | |||
| _delayed_rewrite_functions = new DelayedRewriteGradientFunctions(func_graph, _attrs); | |||
| _inference_function = _delayed_rewrite_functions.Forward(); | |||
| _set_infer_function(); | |||
| } | |||
| public ConcreteFunction(FuncGraph graph, Dictionary<string, string> attrs = null) | |||
| @@ -51,8 +51,7 @@ namespace Tensorflow.Functions | |||
| //ToGraph(graph.Inputs, graph.Outputs.Where(x => x != null).ToArray()); | |||
| _attrs = attrs; | |||
| _delayed_rewrite_functions = new DelayedRewriteGradientFunctions(func_graph, _attrs); | |||
| _inference_function = _delayed_rewrite_functions.Forward(); | |||
| _set_infer_function(); | |||
| } | |||
| public ConcreteFunction(Func<Tensor, Tensor> func, TF_DataType dtype) | |||
| @@ -72,8 +71,7 @@ namespace Tensorflow.Functions | |||
| func_graph.Exit(); | |||
| _captured_inputs = func_graph.external_captures; | |||
| _attrs = new Dictionary<string, string>(); | |||
| _delayed_rewrite_functions = new DelayedRewriteGradientFunctions(func_graph, _attrs); | |||
| _inference_function = _delayed_rewrite_functions.Forward(); | |||
| _set_infer_function(); | |||
| } | |||
| public ConcreteFunction(Func<Tensor, IDatasetV2> func, TF_DataType dtype) | |||
| @@ -96,8 +94,7 @@ namespace Tensorflow.Functions | |||
| func_graph.Exit(); | |||
| _captured_inputs = func_graph.external_captures; | |||
| _attrs = new Dictionary<string, string>(); | |||
| _delayed_rewrite_functions = new DelayedRewriteGradientFunctions(func_graph, _attrs); | |||
| _inference_function = _delayed_rewrite_functions.Forward(); | |||
| _set_infer_function(); | |||
| } | |||
| /*public ConcreteFunction(Func<Tensors, Tensors> func, | |||
| @@ -245,6 +242,12 @@ namespace Tensorflow.Functions | |||
| return new ForwardBackwardCall(_delayed_rewrite_functions, args, tape_watching: false); | |||
| } | |||
| internal void _set_infer_function() | |||
| { | |||
| _delayed_rewrite_functions = new DelayedRewriteGradientFunctions(func_graph, _attrs); | |||
| _inference_function = _delayed_rewrite_functions.Forward(); | |||
| } | |||
| internal void _set_function_spec(FunctionSpec spec) | |||
| { | |||
| _function_spec = null; | |||
| @@ -21,7 +21,7 @@ namespace Tensorflow.Functions | |||
| OpDef _signature; | |||
| string _name; | |||
| Tensor[] _func_graph_outputs; | |||
| public string Name => _func_graph.FuncName; | |||
| public string Name => _name; | |||
| public DataType[] OutputTypes { get; protected set; } | |||
| public Shape[] OutputShapes { get; protected set; } | |||
| public FunctionDef Definition | |||
| @@ -51,18 +51,21 @@ namespace Tensorflow.Functions | |||
| Tensors inputs, Tensors outputs, | |||
| Dictionary<string, string> attrs) | |||
| { | |||
| _num_outputs = outputs.Length; | |||
| var input_ops = inputs.Select(x => x.op).ToArray(); | |||
| var operations = graph.get_operations().Where(x => !input_ops.Contains(x.op)) | |||
| .Select(x => x as Operation).ToArray(); | |||
| var output_names = new string[0]; | |||
| OutputShapes = outputs.Select(x => x.shape).ToArray(); | |||
| OutputTypes = outputs.Select(x => x.dtype.as_datatype_enum()).ToArray(); | |||
| _func_graph = new FuncGraph(graph, name, attrs); | |||
| _func_graph_outputs = new List<Tensor>(outputs).ToArray(); | |||
| _func_graph.ToGraph(operations, inputs, outputs, output_names); | |||
| var signature = _get_definition().Signature; | |||
| _name = signature.Name; | |||
| // TODO(Rinne): deal with `fn` | |||
| _num_outputs = signature.OutputArg.Count; | |||
| OutputTypes = signature.OutputArg.Select(x => x.Type).ToArray(); | |||
| OutputShapes = outputs.Select(x => x.shape).ToArray(); | |||
| } | |||
| public Tensors Call(Tensors args) | |||
| @@ -38,6 +38,21 @@ namespace Tensorflow.Graphs | |||
| // make function as an Operation by autograph | |||
| // need to restore mode when exits | |||
| //var func_graph = new FuncGraph(func_name); | |||
| //func_graph.as_default(); | |||
| //var input_placeholders = args.Arguments.Select(x => tf.placeholder(((Tensor)x).dtype)).ToArray(); | |||
| //// stop the function from recursive call. | |||
| //already_in_boundary = true; | |||
| //var outputs = args.Method.Invoke(args.Instance, input_placeholders) as Tensors; | |||
| //already_in_boundary = false; | |||
| //var opers = func_graph._nodes_by_name.Values.Select(x => x as Operation).ToArray(); | |||
| //func_graph.ToGraph(opers, | |||
| // input_placeholders, | |||
| // outputs, | |||
| // null); | |||
| //func_graph.Exit(); | |||
| function = new ConcreteFunction(func_name); | |||
| function.Enter(); | |||
| @@ -92,6 +107,7 @@ namespace Tensorflow.Graphs | |||
| // cache function. | |||
| function.ReturnType = args.ReturnValue.GetType(); | |||
| function._set_infer_function(); | |||
| functions[func_name] = function; | |||
| // run function | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/allocation_description.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -43,23 +43,31 @@ namespace Tensorflow { | |||
| } | |||
| #region Messages | |||
| public sealed partial class AllocationDescription : pb::IMessage<AllocationDescription> { | |||
| public sealed partial class AllocationDescription : pb::IMessage<AllocationDescription> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<AllocationDescription> _parser = new pb::MessageParser<AllocationDescription>(() => new AllocationDescription()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<AllocationDescription> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.AllocationDescriptionReflection.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 AllocationDescription() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -67,6 +75,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AllocationDescription(AllocationDescription other) : this() { | |||
| requestedBytes_ = other.requestedBytes_; | |||
| allocatedBytes_ = other.allocatedBytes_; | |||
| @@ -78,6 +87,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AllocationDescription Clone() { | |||
| return new AllocationDescription(this); | |||
| } | |||
| @@ -89,6 +99,7 @@ namespace Tensorflow { | |||
| /// Total number of bytes requested | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long RequestedBytes { | |||
| get { return requestedBytes_; } | |||
| set { | |||
| @@ -103,6 +114,7 @@ namespace Tensorflow { | |||
| /// Total number of bytes allocated if known | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long AllocatedBytes { | |||
| get { return allocatedBytes_; } | |||
| set { | |||
| @@ -117,6 +129,7 @@ namespace Tensorflow { | |||
| /// Name of the allocator used | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string AllocatorName { | |||
| get { return allocatorName_; } | |||
| set { | |||
| @@ -131,6 +144,7 @@ namespace Tensorflow { | |||
| /// Identifier of the allocated buffer if known | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long AllocationId { | |||
| get { return allocationId_; } | |||
| set { | |||
| @@ -145,6 +159,7 @@ namespace Tensorflow { | |||
| /// Set if this tensor only has one remaining reference | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool HasSingleReference { | |||
| get { return hasSingleReference_; } | |||
| set { | |||
| @@ -159,6 +174,7 @@ namespace Tensorflow { | |||
| /// Address of the allocation. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ulong Ptr { | |||
| get { return ptr_; } | |||
| set { | |||
| @@ -167,11 +183,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as AllocationDescription); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(AllocationDescription other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -189,6 +207,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (RequestedBytes != 0L) hash ^= RequestedBytes.GetHashCode(); | |||
| @@ -204,12 +223,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (RequestedBytes != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(RequestedBytes); | |||
| @@ -237,9 +261,45 @@ namespace Tensorflow { | |||
| 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 (RequestedBytes != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(RequestedBytes); | |||
| } | |||
| if (AllocatedBytes != 0L) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt64(AllocatedBytes); | |||
| } | |||
| if (AllocatorName.Length != 0) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(AllocatorName); | |||
| } | |||
| if (AllocationId != 0L) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(AllocationId); | |||
| } | |||
| if (HasSingleReference != false) { | |||
| output.WriteRawTag(40); | |||
| output.WriteBool(HasSingleReference); | |||
| } | |||
| if (Ptr != 0UL) { | |||
| output.WriteRawTag(48); | |||
| output.WriteUInt64(Ptr); | |||
| } | |||
| 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 (RequestedBytes != 0L) { | |||
| @@ -267,6 +327,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(AllocationDescription other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -293,7 +354,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -326,7 +391,47 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| RequestedBytes = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| AllocatedBytes = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| AllocatorName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| AllocationId = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 40: { | |||
| HasSingleReference = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 48: { | |||
| Ptr = input.ReadUInt64(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/attr_value.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -63,23 +63,31 @@ namespace Tensorflow { | |||
| /// Comment indicates the corresponding attr type. Only the field matching the | |||
| /// attr type may be filled. | |||
| /// </summary> | |||
| public sealed partial class AttrValue : pb::IMessage<AttrValue> { | |||
| public sealed partial class AttrValue : pb::IMessage<AttrValue> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<AttrValue> _parser = new pb::MessageParser<AttrValue>(() => new AttrValue()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<AttrValue> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.AttrValueReflection.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 AttrValue() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -87,6 +95,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AttrValue(AttrValue other) : this() { | |||
| switch (other.ValueCase) { | |||
| case ValueOneofCase.S: | |||
| @@ -125,6 +134,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AttrValue Clone() { | |||
| return new AttrValue(this); | |||
| } | |||
| @@ -135,6 +145,7 @@ namespace Tensorflow { | |||
| /// "string" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pb::ByteString S { | |||
| get { return valueCase_ == ValueOneofCase.S ? (pb::ByteString) value_ : pb::ByteString.Empty; } | |||
| set { | |||
| @@ -149,6 +160,7 @@ namespace Tensorflow { | |||
| /// "int" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long I { | |||
| get { return valueCase_ == ValueOneofCase.I ? (long) value_ : 0L; } | |||
| set { | |||
| @@ -163,6 +175,7 @@ namespace Tensorflow { | |||
| /// "float" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public float F { | |||
| get { return valueCase_ == ValueOneofCase.F ? (float) value_ : 0F; } | |||
| set { | |||
| @@ -177,6 +190,7 @@ namespace Tensorflow { | |||
| /// "bool" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool B { | |||
| get { return valueCase_ == ValueOneofCase.B ? (bool) value_ : false; } | |||
| set { | |||
| @@ -191,6 +205,7 @@ namespace Tensorflow { | |||
| /// "type" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.DataType Type { | |||
| get { return valueCase_ == ValueOneofCase.Type ? (global::Tensorflow.DataType) value_ : global::Tensorflow.DataType.DtInvalid; } | |||
| set { | |||
| @@ -205,6 +220,7 @@ namespace Tensorflow { | |||
| /// "shape" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.TensorShapeProto Shape { | |||
| get { return valueCase_ == ValueOneofCase.Shape ? (global::Tensorflow.TensorShapeProto) value_ : null; } | |||
| set { | |||
| @@ -219,6 +235,7 @@ namespace Tensorflow { | |||
| /// "tensor" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.TensorProto Tensor { | |||
| get { return valueCase_ == ValueOneofCase.Tensor ? (global::Tensorflow.TensorProto) value_ : null; } | |||
| set { | |||
| @@ -233,6 +250,7 @@ namespace Tensorflow { | |||
| /// any "list(...)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.AttrValue.Types.ListValue List { | |||
| get { return valueCase_ == ValueOneofCase.List ? (global::Tensorflow.AttrValue.Types.ListValue) value_ : null; } | |||
| set { | |||
| @@ -250,6 +268,7 @@ namespace Tensorflow { | |||
| /// that attr in the instantiation. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.NameAttrList Func { | |||
| get { return valueCase_ == ValueOneofCase.Func ? (global::Tensorflow.NameAttrList) value_ : null; } | |||
| set { | |||
| @@ -270,6 +289,7 @@ namespace Tensorflow { | |||
| /// given the value "bar". | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Placeholder { | |||
| get { return valueCase_ == ValueOneofCase.Placeholder ? (string) value_ : ""; } | |||
| set { | |||
| @@ -295,22 +315,26 @@ namespace Tensorflow { | |||
| } | |||
| private ValueOneofCase valueCase_ = ValueOneofCase.None; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ValueOneofCase ValueCase { | |||
| get { return valueCase_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearValue() { | |||
| valueCase_ = ValueOneofCase.None; | |||
| value_ = null; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as AttrValue); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(AttrValue other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -333,6 +357,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (valueCase_ == ValueOneofCase.S) hash ^= S.GetHashCode(); | |||
| @@ -353,12 +378,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (valueCase_ == ValueOneofCase.List) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(List); | |||
| @@ -402,9 +432,61 @@ namespace Tensorflow { | |||
| 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 (valueCase_ == ValueOneofCase.List) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(List); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.S) { | |||
| output.WriteRawTag(18); | |||
| output.WriteBytes(S); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.I) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt64(I); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.F) { | |||
| output.WriteRawTag(37); | |||
| output.WriteFloat(F); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.B) { | |||
| output.WriteRawTag(40); | |||
| output.WriteBool(B); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.Type) { | |||
| output.WriteRawTag(48); | |||
| output.WriteEnum((int) Type); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.Shape) { | |||
| output.WriteRawTag(58); | |||
| output.WriteMessage(Shape); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.Tensor) { | |||
| output.WriteRawTag(66); | |||
| output.WriteMessage(Tensor); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.Placeholder) { | |||
| output.WriteRawTag(74); | |||
| output.WriteString(Placeholder); | |||
| } | |||
| if (valueCase_ == ValueOneofCase.Func) { | |||
| output.WriteRawTag(82); | |||
| output.WriteMessage(Func); | |||
| } | |||
| 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 (valueCase_ == ValueOneofCase.S) { | |||
| @@ -444,6 +526,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(AttrValue other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -497,7 +580,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -567,32 +654,118 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| global::Tensorflow.AttrValue.Types.ListValue subBuilder = new global::Tensorflow.AttrValue.Types.ListValue(); | |||
| if (valueCase_ == ValueOneofCase.List) { | |||
| subBuilder.MergeFrom(List); | |||
| } | |||
| input.ReadMessage(subBuilder); | |||
| List = subBuilder; | |||
| break; | |||
| } | |||
| case 18: { | |||
| S = input.ReadBytes(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| I = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 37: { | |||
| F = input.ReadFloat(); | |||
| break; | |||
| } | |||
| case 40: { | |||
| B = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 48: { | |||
| value_ = input.ReadEnum(); | |||
| valueCase_ = ValueOneofCase.Type; | |||
| break; | |||
| } | |||
| case 58: { | |||
| global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto(); | |||
| if (valueCase_ == ValueOneofCase.Shape) { | |||
| subBuilder.MergeFrom(Shape); | |||
| } | |||
| input.ReadMessage(subBuilder); | |||
| Shape = subBuilder; | |||
| 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: { | |||
| Placeholder = input.ReadString(); | |||
| break; | |||
| } | |||
| case 82: { | |||
| global::Tensorflow.NameAttrList subBuilder = new global::Tensorflow.NameAttrList(); | |||
| if (valueCase_ == ValueOneofCase.Func) { | |||
| subBuilder.MergeFrom(Func); | |||
| } | |||
| input.ReadMessage(subBuilder); | |||
| Func = subBuilder; | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the AttrValue message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| /// <summary> | |||
| /// LINT.IfChange | |||
| /// </summary> | |||
| public sealed partial class ListValue : pb::IMessage<ListValue> { | |||
| public sealed partial class ListValue : pb::IMessage<ListValue> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ListValue> _parser = new pb::MessageParser<ListValue>(() => new ListValue()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ListValue> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.AttrValue.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 ListValue() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -600,6 +773,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ListValue(ListValue other) : this() { | |||
| s_ = other.s_.Clone(); | |||
| i_ = other.i_.Clone(); | |||
| @@ -613,6 +787,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ListValue Clone() { | |||
| return new ListValue(this); | |||
| } | |||
| @@ -626,6 +801,7 @@ namespace Tensorflow { | |||
| /// "list(string)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<pb::ByteString> S { | |||
| get { return s_; } | |||
| } | |||
| @@ -639,6 +815,7 @@ namespace Tensorflow { | |||
| /// "list(int)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> I { | |||
| get { return i_; } | |||
| } | |||
| @@ -652,6 +829,7 @@ namespace Tensorflow { | |||
| /// "list(float)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<float> F { | |||
| get { return f_; } | |||
| } | |||
| @@ -665,6 +843,7 @@ namespace Tensorflow { | |||
| /// "list(bool)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<bool> B { | |||
| get { return b_; } | |||
| } | |||
| @@ -678,6 +857,7 @@ namespace Tensorflow { | |||
| /// "list(type)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.DataType> Type { | |||
| get { return type_; } | |||
| } | |||
| @@ -691,6 +871,7 @@ namespace Tensorflow { | |||
| /// "list(shape)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.TensorShapeProto> Shape { | |||
| get { return shape_; } | |||
| } | |||
| @@ -704,6 +885,7 @@ namespace Tensorflow { | |||
| /// "list(tensor)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.TensorProto> Tensor { | |||
| get { return tensor_; } | |||
| } | |||
| @@ -717,16 +899,19 @@ namespace Tensorflow { | |||
| /// "list(attr)" | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.NameAttrList> Func { | |||
| get { return func_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ListValue); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ListValue other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -746,6 +931,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= s_.GetHashCode(); | |||
| @@ -763,12 +949,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| s_.WriteTo(output, _repeated_s_codec); | |||
| i_.WriteTo(output, _repeated_i_codec); | |||
| f_.WriteTo(output, _repeated_f_codec); | |||
| @@ -780,9 +971,29 @@ namespace Tensorflow { | |||
| 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) { | |||
| s_.WriteTo(ref output, _repeated_s_codec); | |||
| i_.WriteTo(ref output, _repeated_i_codec); | |||
| f_.WriteTo(ref output, _repeated_f_codec); | |||
| b_.WriteTo(ref output, _repeated_b_codec); | |||
| type_.WriteTo(ref output, _repeated_type_codec); | |||
| shape_.WriteTo(ref output, _repeated_shape_codec); | |||
| tensor_.WriteTo(ref output, _repeated_tensor_codec); | |||
| func_.WriteTo(ref output, _repeated_func_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 += s_.CalculateSize(_repeated_s_codec); | |||
| @@ -800,6 +1011,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ListValue other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -816,7 +1028,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -861,7 +1077,59 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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 18: { | |||
| s_.AddEntriesFrom(ref input, _repeated_s_codec); | |||
| break; | |||
| } | |||
| case 26: | |||
| case 24: { | |||
| i_.AddEntriesFrom(ref input, _repeated_i_codec); | |||
| break; | |||
| } | |||
| case 34: | |||
| case 37: { | |||
| f_.AddEntriesFrom(ref input, _repeated_f_codec); | |||
| break; | |||
| } | |||
| case 42: | |||
| case 40: { | |||
| b_.AddEntriesFrom(ref input, _repeated_b_codec); | |||
| break; | |||
| } | |||
| case 50: | |||
| case 48: { | |||
| type_.AddEntriesFrom(ref input, _repeated_type_codec); | |||
| break; | |||
| } | |||
| case 58: { | |||
| shape_.AddEntriesFrom(ref input, _repeated_shape_codec); | |||
| break; | |||
| } | |||
| case 66: { | |||
| tensor_.AddEntriesFrom(ref input, _repeated_tensor_codec); | |||
| break; | |||
| } | |||
| case 74: { | |||
| func_.AddEntriesFrom(ref input, _repeated_func_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -874,23 +1142,31 @@ namespace Tensorflow { | |||
| /// A list of attr names and their values. The whole list is attached | |||
| /// with a string name. E.g., MatMul[T=float]. | |||
| /// </summary> | |||
| public sealed partial class NameAttrList : pb::IMessage<NameAttrList> { | |||
| public sealed partial class NameAttrList : pb::IMessage<NameAttrList> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<NameAttrList> _parser = new pb::MessageParser<NameAttrList>(() => new NameAttrList()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<NameAttrList> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.AttrValueReflection.Descriptor.MessageTypes[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 NameAttrList() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -898,6 +1174,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public NameAttrList(NameAttrList other) : this() { | |||
| name_ = other.name_; | |||
| attr_ = other.attr_.Clone(); | |||
| @@ -905,6 +1182,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public NameAttrList Clone() { | |||
| return new NameAttrList(this); | |||
| } | |||
| @@ -913,6 +1191,7 @@ namespace Tensorflow { | |||
| public const int NameFieldNumber = 1; | |||
| private string name_ = ""; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -926,16 +1205,19 @@ namespace Tensorflow { | |||
| = new pbc::MapField<string, global::Tensorflow.AttrValue>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.AttrValue.Parser), 18); | |||
| private readonly pbc::MapField<string, global::Tensorflow.AttrValue> attr_ = new pbc::MapField<string, global::Tensorflow.AttrValue>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::MapField<string, global::Tensorflow.AttrValue> Attr { | |||
| get { return attr_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as NameAttrList); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(NameAttrList other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -949,6 +1231,7 @@ namespace Tensorflow { | |||
| } | |||
| [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(); | |||
| @@ -960,12 +1243,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -974,9 +1262,26 @@ namespace Tensorflow { | |||
| 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); | |||
| } | |||
| attr_.WriteTo(ref output, _map_attr_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; | |||
| if (Name.Length != 0) { | |||
| @@ -990,6 +1295,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(NameAttrList other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -997,12 +1303,16 @@ namespace Tensorflow { | |||
| if (other.Name.Length != 0) { | |||
| Name = other.Name; | |||
| } | |||
| attr_.Add(other.attr_); | |||
| attr_.MergeFrom(other.attr_); | |||
| _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) { | |||
| @@ -1019,7 +1329,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| attr_.AddEntriesFrom(ref input, _map_attr_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/python/training/checkpoint_state.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -43,23 +43,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Protocol buffer representing the checkpoint state. | |||
| /// </summary> | |||
| public sealed partial class CheckpointState : pb::IMessage<CheckpointState> { | |||
| public sealed partial class CheckpointState : pb::IMessage<CheckpointState> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CheckpointState> _parser = new pb::MessageParser<CheckpointState>(() => new CheckpointState()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CheckpointState> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CheckpointStateReflection.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 CheckpointState() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -67,6 +75,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CheckpointState(CheckpointState other) : this() { | |||
| modelCheckpointPath_ = other.modelCheckpointPath_; | |||
| allModelCheckpointPaths_ = other.allModelCheckpointPaths_.Clone(); | |||
| @@ -76,6 +85,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CheckpointState Clone() { | |||
| return new CheckpointState(this); | |||
| } | |||
| @@ -87,6 +97,7 @@ namespace Tensorflow { | |||
| /// Path to the most-recent model checkpoint. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string ModelCheckpointPath { | |||
| get { return modelCheckpointPath_; } | |||
| set { | |||
| @@ -106,6 +117,7 @@ namespace Tensorflow { | |||
| /// this list. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> AllModelCheckpointPaths { | |||
| get { return allModelCheckpointPaths_; } | |||
| } | |||
| @@ -120,6 +132,7 @@ namespace Tensorflow { | |||
| /// when each checkpoint was created. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<double> AllModelCheckpointTimestamps { | |||
| get { return allModelCheckpointTimestamps_; } | |||
| } | |||
| @@ -132,6 +145,7 @@ namespace Tensorflow { | |||
| /// checkpoint. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public double LastPreservedTimestamp { | |||
| get { return lastPreservedTimestamp_; } | |||
| set { | |||
| @@ -140,11 +154,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CheckpointState); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CheckpointState other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -160,6 +176,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (ModelCheckpointPath.Length != 0) hash ^= ModelCheckpointPath.GetHashCode(); | |||
| @@ -173,12 +190,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (ModelCheckpointPath.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ModelCheckpointPath); | |||
| @@ -192,9 +214,31 @@ namespace Tensorflow { | |||
| 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 (ModelCheckpointPath.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ModelCheckpointPath); | |||
| } | |||
| allModelCheckpointPaths_.WriteTo(ref output, _repeated_allModelCheckpointPaths_codec); | |||
| allModelCheckpointTimestamps_.WriteTo(ref output, _repeated_allModelCheckpointTimestamps_codec); | |||
| if (LastPreservedTimestamp != 0D) { | |||
| output.WriteRawTag(33); | |||
| output.WriteDouble(LastPreservedTimestamp); | |||
| } | |||
| 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 (ModelCheckpointPath.Length != 0) { | |||
| @@ -212,6 +256,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CheckpointState other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -228,7 +273,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -254,7 +303,40 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| ModelCheckpointPath = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| allModelCheckpointPaths_.AddEntriesFrom(ref input, _repeated_allModelCheckpointPaths_codec); | |||
| break; | |||
| } | |||
| case 26: | |||
| case 25: { | |||
| allModelCheckpointTimestamps_.AddEntriesFrom(ref input, _repeated_allModelCheckpointTimestamps_codec); | |||
| break; | |||
| } | |||
| case 33: { | |||
| LastPreservedTimestamp = input.ReadDouble(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/cluster.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -47,23 +47,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Defines a single job in a TensorFlow cluster. | |||
| /// </summary> | |||
| public sealed partial class JobDef : pb::IMessage<JobDef> { | |||
| public sealed partial class JobDef : pb::IMessage<JobDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<JobDef> _parser = new pb::MessageParser<JobDef>(() => new JobDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<JobDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ClusterReflection.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 JobDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -71,6 +79,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public JobDef(JobDef other) : this() { | |||
| name_ = other.name_; | |||
| tasks_ = other.tasks_.Clone(); | |||
| @@ -78,6 +87,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public JobDef Clone() { | |||
| return new JobDef(this); | |||
| } | |||
| @@ -89,6 +99,7 @@ namespace Tensorflow { | |||
| /// The name of this job. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -109,16 +120,19 @@ namespace Tensorflow { | |||
| /// "/job:worker/task:7" will be assigned to "example.org:2222". | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::MapField<int, string> Tasks { | |||
| get { return tasks_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as JobDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(JobDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -132,6 +146,7 @@ namespace Tensorflow { | |||
| } | |||
| [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(); | |||
| @@ -143,12 +158,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -157,9 +177,26 @@ namespace Tensorflow { | |||
| 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); | |||
| } | |||
| tasks_.WriteTo(ref output, _map_tasks_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; | |||
| if (Name.Length != 0) { | |||
| @@ -173,6 +210,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(JobDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -180,12 +218,16 @@ namespace Tensorflow { | |||
| if (other.Name.Length != 0) { | |||
| Name = other.Name; | |||
| } | |||
| tasks_.Add(other.tasks_); | |||
| tasks_.MergeFrom(other.tasks_); | |||
| _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) { | |||
| @@ -202,30 +244,62 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| tasks_.AddEntriesFrom(ref input, _map_tasks_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Defines a TensorFlow cluster as a set of jobs. | |||
| /// </summary> | |||
| public sealed partial class ClusterDef : pb::IMessage<ClusterDef> { | |||
| public sealed partial class ClusterDef : pb::IMessage<ClusterDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ClusterDef> _parser = new pb::MessageParser<ClusterDef>(() => new ClusterDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ClusterDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ClusterReflection.Descriptor.MessageTypes[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 ClusterDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -233,12 +307,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ClusterDef(ClusterDef other) : this() { | |||
| job_ = other.job_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ClusterDef Clone() { | |||
| return new ClusterDef(this); | |||
| } | |||
| @@ -252,16 +328,19 @@ namespace Tensorflow { | |||
| /// The jobs that comprise the cluster. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.JobDef> Job { | |||
| get { return job_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ClusterDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ClusterDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -274,6 +353,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= job_.GetHashCode(); | |||
| @@ -284,19 +364,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| job_.WriteTo(output, _repeated_job_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) { | |||
| job_.WriteTo(ref output, _repeated_job_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 += job_.CalculateSize(_repeated_job_codec); | |||
| @@ -307,6 +405,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ClusterDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -316,7 +415,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -329,7 +432,27 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| job_.AddEntriesFrom(ref input, _repeated_job_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/control_flow.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -64,23 +64,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Protocol buffer representing the values in ControlFlowContext. | |||
| /// </summary> | |||
| public sealed partial class ValuesDef : pb::IMessage<ValuesDef> { | |||
| public sealed partial class ValuesDef : pb::IMessage<ValuesDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ValuesDef> _parser = new pb::MessageParser<ValuesDef>(() => new ValuesDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ValuesDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ControlFlowReflection.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 ValuesDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -88,6 +96,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ValuesDef(ValuesDef other) : this() { | |||
| values_ = other.values_.Clone(); | |||
| externalValues_ = other.externalValues_.Clone(); | |||
| @@ -95,6 +104,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ValuesDef Clone() { | |||
| return new ValuesDef(this); | |||
| } | |||
| @@ -108,6 +118,7 @@ namespace Tensorflow { | |||
| /// Value names that have been seen in this context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> Values { | |||
| get { return values_; } | |||
| } | |||
| @@ -121,16 +132,19 @@ namespace Tensorflow { | |||
| /// Value names referenced by but external to this context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::MapField<string, string> ExternalValues { | |||
| get { return externalValues_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ValuesDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ValuesDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -144,6 +158,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= values_.GetHashCode(); | |||
| @@ -155,20 +170,39 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| values_.WriteTo(output, _repeated_values_codec); | |||
| externalValues_.WriteTo(output, _map_externalValues_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) { | |||
| values_.WriteTo(ref output, _repeated_values_codec); | |||
| externalValues_.WriteTo(ref output, _map_externalValues_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 += values_.CalculateSize(_repeated_values_codec); | |||
| @@ -180,17 +214,22 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ValuesDef other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| values_.Add(other.values_); | |||
| externalValues_.Add(other.externalValues_); | |||
| externalValues_.MergeFrom(other.externalValues_); | |||
| _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) { | |||
| @@ -207,7 +246,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| values_.AddEntriesFrom(ref input, _repeated_values_codec); | |||
| break; | |||
| } | |||
| case 18: { | |||
| externalValues_.AddEntriesFrom(ref input, _map_externalValues_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -215,23 +278,31 @@ namespace Tensorflow { | |||
| /// Container for any kind of control flow context. Any other control flow | |||
| /// contexts that are added below should also be added here. | |||
| /// </summary> | |||
| public sealed partial class ControlFlowContextDef : pb::IMessage<ControlFlowContextDef> { | |||
| public sealed partial class ControlFlowContextDef : pb::IMessage<ControlFlowContextDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ControlFlowContextDef> _parser = new pb::MessageParser<ControlFlowContextDef>(() => new ControlFlowContextDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ControlFlowContextDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ControlFlowReflection.Descriptor.MessageTypes[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 ControlFlowContextDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -239,6 +310,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ControlFlowContextDef(ControlFlowContextDef other) : this() { | |||
| switch (other.CtxtCase) { | |||
| case CtxtOneofCase.CondCtxt: | |||
| @@ -253,6 +325,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ControlFlowContextDef Clone() { | |||
| return new ControlFlowContextDef(this); | |||
| } | |||
| @@ -260,6 +333,7 @@ namespace Tensorflow { | |||
| /// <summary>Field number for the "cond_ctxt" field.</summary> | |||
| public const int CondCtxtFieldNumber = 1; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.CondContextDef CondCtxt { | |||
| get { return ctxtCase_ == CtxtOneofCase.CondCtxt ? (global::Tensorflow.CondContextDef) ctxt_ : null; } | |||
| set { | |||
| @@ -271,6 +345,7 @@ namespace Tensorflow { | |||
| /// <summary>Field number for the "while_ctxt" field.</summary> | |||
| public const int WhileCtxtFieldNumber = 2; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.WhileContextDef WhileCtxt { | |||
| get { return ctxtCase_ == CtxtOneofCase.WhileCtxt ? (global::Tensorflow.WhileContextDef) ctxt_ : null; } | |||
| set { | |||
| @@ -288,22 +363,26 @@ namespace Tensorflow { | |||
| } | |||
| private CtxtOneofCase ctxtCase_ = CtxtOneofCase.None; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CtxtOneofCase CtxtCase { | |||
| get { return ctxtCase_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearCtxt() { | |||
| ctxtCase_ = CtxtOneofCase.None; | |||
| ctxt_ = null; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ControlFlowContextDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ControlFlowContextDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -318,6 +397,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (ctxtCase_ == CtxtOneofCase.CondCtxt) hash ^= CondCtxt.GetHashCode(); | |||
| @@ -330,12 +410,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (ctxtCase_ == CtxtOneofCase.CondCtxt) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(CondCtxt); | |||
| @@ -347,9 +432,29 @@ namespace Tensorflow { | |||
| 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 (ctxtCase_ == CtxtOneofCase.CondCtxt) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(CondCtxt); | |||
| } | |||
| if (ctxtCase_ == CtxtOneofCase.WhileCtxt) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(WhileCtxt); | |||
| } | |||
| 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 (ctxtCase_ == CtxtOneofCase.CondCtxt) { | |||
| @@ -365,6 +470,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ControlFlowContextDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -388,7 +494,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -415,30 +525,72 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| global::Tensorflow.CondContextDef subBuilder = new global::Tensorflow.CondContextDef(); | |||
| if (ctxtCase_ == CtxtOneofCase.CondCtxt) { | |||
| subBuilder.MergeFrom(CondCtxt); | |||
| } | |||
| input.ReadMessage(subBuilder); | |||
| CondCtxt = subBuilder; | |||
| break; | |||
| } | |||
| case 18: { | |||
| global::Tensorflow.WhileContextDef subBuilder = new global::Tensorflow.WhileContextDef(); | |||
| if (ctxtCase_ == CtxtOneofCase.WhileCtxt) { | |||
| subBuilder.MergeFrom(WhileCtxt); | |||
| } | |||
| input.ReadMessage(subBuilder); | |||
| WhileCtxt = subBuilder; | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Protocol buffer representing a CondContext object. | |||
| /// </summary> | |||
| public sealed partial class CondContextDef : pb::IMessage<CondContextDef> { | |||
| public sealed partial class CondContextDef : pb::IMessage<CondContextDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CondContextDef> _parser = new pb::MessageParser<CondContextDef>(() => new CondContextDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CondContextDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ControlFlowReflection.Descriptor.MessageTypes[2]; } | |||
| } | |||
| [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 CondContextDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -446,6 +598,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CondContextDef(CondContextDef other) : this() { | |||
| contextName_ = other.contextName_; | |||
| predName_ = other.predName_; | |||
| @@ -457,6 +610,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CondContextDef Clone() { | |||
| return new CondContextDef(this); | |||
| } | |||
| @@ -468,6 +622,7 @@ namespace Tensorflow { | |||
| /// Name of the context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string ContextName { | |||
| get { return contextName_; } | |||
| set { | |||
| @@ -482,6 +637,7 @@ namespace Tensorflow { | |||
| /// Name of the pred tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PredName { | |||
| get { return predName_; } | |||
| set { | |||
| @@ -496,6 +652,7 @@ namespace Tensorflow { | |||
| /// Name of the pivot tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PivotName { | |||
| get { return pivotName_; } | |||
| set { | |||
| @@ -510,6 +667,7 @@ namespace Tensorflow { | |||
| /// Branch prediction. 0 or 1. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int Branch { | |||
| get { return branch_; } | |||
| set { | |||
| @@ -524,6 +682,7 @@ namespace Tensorflow { | |||
| /// Values and external values in control flow context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.ValuesDef ValuesDef { | |||
| get { return valuesDef_; } | |||
| set { | |||
| @@ -540,16 +699,19 @@ namespace Tensorflow { | |||
| /// Contexts contained inside this context (e.g. nested conds). | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.ControlFlowContextDef> NestedContexts { | |||
| get { return nestedContexts_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CondContextDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CondContextDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -567,6 +729,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (ContextName.Length != 0) hash ^= ContextName.GetHashCode(); | |||
| @@ -582,12 +745,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (ContextName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ContextName); | |||
| @@ -612,9 +780,42 @@ namespace Tensorflow { | |||
| 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 (ContextName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ContextName); | |||
| } | |||
| if (PredName.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(PredName); | |||
| } | |||
| if (PivotName.Length != 0) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(PivotName); | |||
| } | |||
| if (Branch != 0) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt32(Branch); | |||
| } | |||
| if (valuesDef_ != null) { | |||
| output.WriteRawTag(42); | |||
| output.WriteMessage(ValuesDef); | |||
| } | |||
| nestedContexts_.WriteTo(ref output, _repeated_nestedContexts_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; | |||
| if (ContextName.Length != 0) { | |||
| @@ -640,6 +841,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CondContextDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -667,7 +869,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -703,30 +909,81 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| ContextName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| PredName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| PivotName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| Branch = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| if (valuesDef_ == null) { | |||
| ValuesDef = new global::Tensorflow.ValuesDef(); | |||
| } | |||
| input.ReadMessage(ValuesDef); | |||
| break; | |||
| } | |||
| case 50: { | |||
| nestedContexts_.AddEntriesFrom(ref input, _repeated_nestedContexts_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Protocol buffer representing a WhileContext object. | |||
| /// </summary> | |||
| public sealed partial class WhileContextDef : pb::IMessage<WhileContextDef> { | |||
| public sealed partial class WhileContextDef : pb::IMessage<WhileContextDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<WhileContextDef> _parser = new pb::MessageParser<WhileContextDef>(() => new WhileContextDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<WhileContextDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ControlFlowReflection.Descriptor.MessageTypes[3]; } | |||
| } | |||
| [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 WhileContextDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -734,6 +991,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public WhileContextDef(WhileContextDef other) : this() { | |||
| contextName_ = other.contextName_; | |||
| parallelIterations_ = other.parallelIterations_; | |||
| @@ -751,6 +1009,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public WhileContextDef Clone() { | |||
| return new WhileContextDef(this); | |||
| } | |||
| @@ -762,6 +1021,7 @@ namespace Tensorflow { | |||
| /// Name of the context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string ContextName { | |||
| get { return contextName_; } | |||
| set { | |||
| @@ -776,6 +1036,7 @@ namespace Tensorflow { | |||
| /// The number of iterations allowed to run in parallel. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int ParallelIterations { | |||
| get { return parallelIterations_; } | |||
| set { | |||
| @@ -790,6 +1051,7 @@ namespace Tensorflow { | |||
| /// Whether backprop is enabled for this while loop. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool BackProp { | |||
| get { return backProp_; } | |||
| set { | |||
| @@ -804,6 +1066,7 @@ namespace Tensorflow { | |||
| /// Whether GPU-CPU memory swap is enabled for this loop. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool SwapMemory { | |||
| get { return swapMemory_; } | |||
| set { | |||
| @@ -818,6 +1081,7 @@ namespace Tensorflow { | |||
| /// Name of the pivot tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PivotName { | |||
| get { return pivotName_; } | |||
| set { | |||
| @@ -832,6 +1096,7 @@ namespace Tensorflow { | |||
| /// Name of the pivot_for_pred tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PivotForPredName { | |||
| get { return pivotForPredName_; } | |||
| set { | |||
| @@ -846,6 +1111,7 @@ namespace Tensorflow { | |||
| /// Name of the pivot_for_body tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PivotForBodyName { | |||
| get { return pivotForBodyName_; } | |||
| set { | |||
| @@ -862,6 +1128,7 @@ namespace Tensorflow { | |||
| /// List of names for exit tensors. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> LoopExitNames { | |||
| get { return loopExitNames_; } | |||
| } | |||
| @@ -875,6 +1142,7 @@ namespace Tensorflow { | |||
| /// List of names for enter tensors. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> LoopEnterNames { | |||
| get { return loopEnterNames_; } | |||
| } | |||
| @@ -886,6 +1154,7 @@ namespace Tensorflow { | |||
| /// Values and external values in control flow context. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.ValuesDef ValuesDef { | |||
| get { return valuesDef_; } | |||
| set { | |||
| @@ -900,6 +1169,7 @@ namespace Tensorflow { | |||
| /// Optional name of the maximum_iterations tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string MaximumIterationsName { | |||
| get { return maximumIterationsName_; } | |||
| set { | |||
| @@ -916,16 +1186,19 @@ namespace Tensorflow { | |||
| /// Contexts contained inside this context (e.g. nested whiles). | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.ControlFlowContextDef> NestedContexts { | |||
| get { return nestedContexts_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as WhileContextDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(WhileContextDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -949,6 +1222,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (ContextName.Length != 0) hash ^= ContextName.GetHashCode(); | |||
| @@ -970,12 +1244,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (ContextName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ContextName); | |||
| @@ -1018,9 +1297,60 @@ namespace Tensorflow { | |||
| 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 (ContextName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ContextName); | |||
| } | |||
| if (ParallelIterations != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(ParallelIterations); | |||
| } | |||
| if (BackProp != false) { | |||
| output.WriteRawTag(24); | |||
| output.WriteBool(BackProp); | |||
| } | |||
| if (SwapMemory != false) { | |||
| output.WriteRawTag(32); | |||
| output.WriteBool(SwapMemory); | |||
| } | |||
| if (PivotName.Length != 0) { | |||
| output.WriteRawTag(42); | |||
| output.WriteString(PivotName); | |||
| } | |||
| if (PivotForPredName.Length != 0) { | |||
| output.WriteRawTag(50); | |||
| output.WriteString(PivotForPredName); | |||
| } | |||
| if (PivotForBodyName.Length != 0) { | |||
| output.WriteRawTag(58); | |||
| output.WriteString(PivotForBodyName); | |||
| } | |||
| loopExitNames_.WriteTo(ref output, _repeated_loopExitNames_codec); | |||
| if (valuesDef_ != null) { | |||
| output.WriteRawTag(74); | |||
| output.WriteMessage(ValuesDef); | |||
| } | |||
| loopEnterNames_.WriteTo(ref output, _repeated_loopEnterNames_codec); | |||
| if (MaximumIterationsName.Length != 0) { | |||
| output.WriteRawTag(90); | |||
| output.WriteString(MaximumIterationsName); | |||
| } | |||
| nestedContexts_.WriteTo(ref output, _repeated_nestedContexts_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; | |||
| if (ContextName.Length != 0) { | |||
| @@ -1060,6 +1390,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(WhileContextDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -1101,7 +1432,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -1161,7 +1496,74 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| ContextName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| ParallelIterations = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| BackProp = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| SwapMemory = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| PivotName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 50: { | |||
| PivotForPredName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 58: { | |||
| PivotForBodyName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 66: { | |||
| loopExitNames_.AddEntriesFrom(ref input, _repeated_loopExitNames_codec); | |||
| break; | |||
| } | |||
| case 74: { | |||
| if (valuesDef_ == null) { | |||
| ValuesDef = new global::Tensorflow.ValuesDef(); | |||
| } | |||
| input.ReadMessage(ValuesDef); | |||
| break; | |||
| } | |||
| case 82: { | |||
| loopEnterNames_.AddEntriesFrom(ref input, _repeated_loopEnterNames_codec); | |||
| break; | |||
| } | |||
| case 90: { | |||
| MaximumIterationsName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 98: { | |||
| nestedContexts_.AddEntriesFrom(ref input, _repeated_nestedContexts_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -0,0 +1,791 @@ | |||
| // <auto-generated> | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/coordination_config.proto | |||
| // </auto-generated> | |||
| #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 { | |||
| /// <summary>Holder for reflection information generated from tensorflow/core/protobuf/coordination_config.proto</summary> | |||
| public static partial class CoordinationConfigReflection { | |||
| #region Descriptor | |||
| /// <summary>File descriptor for tensorflow/core/protobuf/coordination_config.proto</summary> | |||
| public static pbr::FileDescriptor Descriptor { | |||
| get { return descriptor; } | |||
| } | |||
| private static pbr::FileDescriptor descriptor; | |||
| static CoordinationConfigReflection() { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "CjJ0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvY29vcmRpbmF0aW9uX2NvbmZp", | |||
| "Zy5wcm90bxIKdGVuc29yZmxvdyIxCg5Db29yZGluYXRlZEpvYhIMCgRuYW1l", | |||
| "GAEgASgJEhEKCW51bV90YXNrcxgCIAEoBSLdAgoZQ29vcmRpbmF0aW9uU2Vy", | |||
| "dmljZUNvbmZpZxIUCgxzZXJ2aWNlX3R5cGUYASABKAkSFgoOc2VydmljZV9s", | |||
| "ZWFkZXIYAiABKAkSGwoTZW5hYmxlX2hlYWx0aF9jaGVjaxgDIAEoCBImCh5j", | |||
| "bHVzdGVyX3JlZ2lzdGVyX3RpbWVvdXRfaW5fbXMYBCABKAMSHwoXaGVhcnRi", | |||
| "ZWF0X3RpbWVvdXRfaW5fbXMYBSABKAMSOAoUY29vcmRpbmF0ZWRfam9iX2xp", | |||
| "c3QYCiADKAsyGi50ZW5zb3JmbG93LkNvb3JkaW5hdGVkSm9iEiYKHnNodXRk", | |||
| "b3duX2JhcnJpZXJfdGltZW91dF9pbl9tcxgHIAEoAxIqCiJhZ2VudF9kZXN0", | |||
| "cnVjdGlvbl93aXRob3V0X3NodXRkb3duGAggASgIEhgKEHJlY292ZXJhYmxl", | |||
| "X2pvYnMYCSADKAlKBAgGEAdCV1pVZ2l0aHViLmNvbS90ZW5zb3JmbG93L3Rl", | |||
| "bnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3RvYnVmL2Zvcl9jb3Jl", | |||
| "X3Byb3Rvc19nb19wcm90b2IGcHJvdG8z")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CoordinatedJob), global::Tensorflow.CoordinatedJob.Parser, new[]{ "Name", "NumTasks" }, null, null, null, null), | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CoordinationServiceConfig), global::Tensorflow.CoordinationServiceConfig.Parser, new[]{ "ServiceType", "ServiceLeader", "EnableHealthCheck", "ClusterRegisterTimeoutInMs", "HeartbeatTimeoutInMs", "CoordinatedJobList", "ShutdownBarrierTimeoutInMs", "AgentDestructionWithoutShutdown", "RecoverableJobs" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| /// <summary> | |||
| /// Represents a job type and the number of tasks under this job. | |||
| /// For example, ("worker", 20) implies that there will be 20 worker tasks. | |||
| /// </summary> | |||
| public sealed partial class CoordinatedJob : pb::IMessage<CoordinatedJob> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CoordinatedJob> _parser = new pb::MessageParser<CoordinatedJob>(() => new CoordinatedJob()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CoordinatedJob> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CoordinationConfigReflection.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 CoordinatedJob() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CoordinatedJob(CoordinatedJob other) : this() { | |||
| name_ = other.name_; | |||
| numTasks_ = other.numTasks_; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CoordinatedJob Clone() { | |||
| return new CoordinatedJob(this); | |||
| } | |||
| /// <summary>Field number for the "name" field.</summary> | |||
| public const int NameFieldNumber = 1; | |||
| private string name_ = ""; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | |||
| } | |||
| } | |||
| /// <summary>Field number for the "num_tasks" field.</summary> | |||
| public const int NumTasksFieldNumber = 2; | |||
| private int numTasks_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int NumTasks { | |||
| get { return numTasks_; } | |||
| set { | |||
| numTasks_ = value; | |||
| } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CoordinatedJob); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CoordinatedJob other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| } | |||
| if (ReferenceEquals(other, this)) { | |||
| return true; | |||
| } | |||
| if (Name != other.Name) return false; | |||
| if (NumTasks != other.NumTasks) 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 (NumTasks != 0) hash ^= NumTasks.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 (NumTasks != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(NumTasks); | |||
| } | |||
| 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 (NumTasks != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(NumTasks); | |||
| } | |||
| 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 (NumTasks != 0) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumTasks); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| return size; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CoordinatedJob other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| if (other.Name.Length != 0) { | |||
| Name = other.Name; | |||
| } | |||
| if (other.NumTasks != 0) { | |||
| NumTasks = other.NumTasks; | |||
| } | |||
| _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 16: { | |||
| NumTasks = 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 10: { | |||
| Name = input.ReadString(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| NumTasks = input.ReadInt32(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Coordination service configuration parameters. | |||
| /// The system picks appropriate values for fields that are not set. | |||
| /// </summary> | |||
| public sealed partial class CoordinationServiceConfig : pb::IMessage<CoordinationServiceConfig> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CoordinationServiceConfig> _parser = new pb::MessageParser<CoordinationServiceConfig>(() => new CoordinationServiceConfig()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CoordinationServiceConfig> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CoordinationConfigReflection.Descriptor.MessageTypes[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 CoordinationServiceConfig() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CoordinationServiceConfig(CoordinationServiceConfig other) : this() { | |||
| serviceType_ = other.serviceType_; | |||
| serviceLeader_ = other.serviceLeader_; | |||
| enableHealthCheck_ = other.enableHealthCheck_; | |||
| clusterRegisterTimeoutInMs_ = other.clusterRegisterTimeoutInMs_; | |||
| heartbeatTimeoutInMs_ = other.heartbeatTimeoutInMs_; | |||
| coordinatedJobList_ = other.coordinatedJobList_.Clone(); | |||
| shutdownBarrierTimeoutInMs_ = other.shutdownBarrierTimeoutInMs_; | |||
| agentDestructionWithoutShutdown_ = other.agentDestructionWithoutShutdown_; | |||
| recoverableJobs_ = other.recoverableJobs_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CoordinationServiceConfig Clone() { | |||
| return new CoordinationServiceConfig(this); | |||
| } | |||
| /// <summary>Field number for the "service_type" field.</summary> | |||
| public const int ServiceTypeFieldNumber = 1; | |||
| private string serviceType_ = ""; | |||
| /// <summary> | |||
| /// Type of coordination service implementation to enable. | |||
| /// For example, setting the service type as "standalone" starts a service | |||
| /// instance on the leader task to provide the coordination services such as | |||
| /// heartbeats and consistent key-value store. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string ServiceType { | |||
| get { return serviceType_; } | |||
| set { | |||
| serviceType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | |||
| } | |||
| } | |||
| /// <summary>Field number for the "service_leader" field.</summary> | |||
| public const int ServiceLeaderFieldNumber = 2; | |||
| private string serviceLeader_ = ""; | |||
| /// <summary> | |||
| /// Address where the coordination service instance is hosted. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string ServiceLeader { | |||
| get { return serviceLeader_; } | |||
| set { | |||
| serviceLeader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | |||
| } | |||
| } | |||
| /// <summary>Field number for the "enable_health_check" field.</summary> | |||
| public const int EnableHealthCheckFieldNumber = 3; | |||
| private bool enableHealthCheck_; | |||
| /// <summary> | |||
| /// Whether to enable the health check mechanism. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool EnableHealthCheck { | |||
| get { return enableHealthCheck_; } | |||
| set { | |||
| enableHealthCheck_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "cluster_register_timeout_in_ms" field.</summary> | |||
| public const int ClusterRegisterTimeoutInMsFieldNumber = 4; | |||
| private long clusterRegisterTimeoutInMs_; | |||
| /// <summary> | |||
| /// Maximum wait time for all members in the cluster to be registered. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long ClusterRegisterTimeoutInMs { | |||
| get { return clusterRegisterTimeoutInMs_; } | |||
| set { | |||
| clusterRegisterTimeoutInMs_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "heartbeat_timeout_in_ms" field.</summary> | |||
| public const int HeartbeatTimeoutInMsFieldNumber = 5; | |||
| private long heartbeatTimeoutInMs_; | |||
| /// <summary> | |||
| /// Heartbeat timeout, if a task does not record heartbeat in this time | |||
| /// window, it will be considered disconnected. | |||
| /// Note: This is also used as a grace period to accept any heartbeats after | |||
| /// the agent has disconnected, to account for the lag time between the service | |||
| /// recording the state change and the agent stopping heartbeats. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long HeartbeatTimeoutInMs { | |||
| get { return heartbeatTimeoutInMs_; } | |||
| set { | |||
| heartbeatTimeoutInMs_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "coordinated_job_list" field.</summary> | |||
| public const int CoordinatedJobListFieldNumber = 10; | |||
| private static readonly pb::FieldCodec<global::Tensorflow.CoordinatedJob> _repeated_coordinatedJobList_codec | |||
| = pb::FieldCodec.ForMessage(82, global::Tensorflow.CoordinatedJob.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.CoordinatedJob> coordinatedJobList_ = new pbc::RepeatedField<global::Tensorflow.CoordinatedJob>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.CoordinatedJob> CoordinatedJobList { | |||
| get { return coordinatedJobList_; } | |||
| } | |||
| /// <summary>Field number for the "shutdown_barrier_timeout_in_ms" field.</summary> | |||
| public const int ShutdownBarrierTimeoutInMsFieldNumber = 7; | |||
| private long shutdownBarrierTimeoutInMs_; | |||
| /// <summary> | |||
| /// Denotes how long to wait for all coordination agents to reach the barriers | |||
| /// (after the first shutdown request) before disconnecting together. If | |||
| /// set to 0, no barrier is imposed upon shutdown and each worker can | |||
| /// disconnect individually. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long ShutdownBarrierTimeoutInMs { | |||
| get { return shutdownBarrierTimeoutInMs_; } | |||
| set { | |||
| shutdownBarrierTimeoutInMs_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "agent_destruction_without_shutdown" field.</summary> | |||
| public const int AgentDestructionWithoutShutdownFieldNumber = 8; | |||
| private bool agentDestructionWithoutShutdown_; | |||
| /// <summary> | |||
| /// If set, agents do not make an explicit Shutdown() call. Service will only | |||
| /// find out about the disconnecte agent via stale heartbeats. Used for | |||
| /// testing. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool AgentDestructionWithoutShutdown { | |||
| get { return agentDestructionWithoutShutdown_; } | |||
| set { | |||
| agentDestructionWithoutShutdown_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "recoverable_jobs" field.</summary> | |||
| public const int RecoverableJobsFieldNumber = 9; | |||
| private static readonly pb::FieldCodec<string> _repeated_recoverableJobs_codec | |||
| = pb::FieldCodec.ForString(74); | |||
| private readonly pbc::RepeatedField<string> recoverableJobs_ = new pbc::RepeatedField<string>(); | |||
| /// <summary> | |||
| /// The list of jobs which are recoverable. If a task in this list fails, | |||
| /// it will not propagate error to other tasks. | |||
| /// If empty, no jobs will be recoverable and every task failure will cause | |||
| /// error propagation to other tasks. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> RecoverableJobs { | |||
| get { return recoverableJobs_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CoordinationServiceConfig); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CoordinationServiceConfig other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| } | |||
| if (ReferenceEquals(other, this)) { | |||
| return true; | |||
| } | |||
| if (ServiceType != other.ServiceType) return false; | |||
| if (ServiceLeader != other.ServiceLeader) return false; | |||
| if (EnableHealthCheck != other.EnableHealthCheck) return false; | |||
| if (ClusterRegisterTimeoutInMs != other.ClusterRegisterTimeoutInMs) return false; | |||
| if (HeartbeatTimeoutInMs != other.HeartbeatTimeoutInMs) return false; | |||
| if(!coordinatedJobList_.Equals(other.coordinatedJobList_)) return false; | |||
| if (ShutdownBarrierTimeoutInMs != other.ShutdownBarrierTimeoutInMs) return false; | |||
| if (AgentDestructionWithoutShutdown != other.AgentDestructionWithoutShutdown) return false; | |||
| if(!recoverableJobs_.Equals(other.recoverableJobs_)) 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 (ServiceType.Length != 0) hash ^= ServiceType.GetHashCode(); | |||
| if (ServiceLeader.Length != 0) hash ^= ServiceLeader.GetHashCode(); | |||
| if (EnableHealthCheck != false) hash ^= EnableHealthCheck.GetHashCode(); | |||
| if (ClusterRegisterTimeoutInMs != 0L) hash ^= ClusterRegisterTimeoutInMs.GetHashCode(); | |||
| if (HeartbeatTimeoutInMs != 0L) hash ^= HeartbeatTimeoutInMs.GetHashCode(); | |||
| hash ^= coordinatedJobList_.GetHashCode(); | |||
| if (ShutdownBarrierTimeoutInMs != 0L) hash ^= ShutdownBarrierTimeoutInMs.GetHashCode(); | |||
| if (AgentDestructionWithoutShutdown != false) hash ^= AgentDestructionWithoutShutdown.GetHashCode(); | |||
| hash ^= recoverableJobs_.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 (ServiceType.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ServiceType); | |||
| } | |||
| if (ServiceLeader.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(ServiceLeader); | |||
| } | |||
| if (EnableHealthCheck != false) { | |||
| output.WriteRawTag(24); | |||
| output.WriteBool(EnableHealthCheck); | |||
| } | |||
| if (ClusterRegisterTimeoutInMs != 0L) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(ClusterRegisterTimeoutInMs); | |||
| } | |||
| if (HeartbeatTimeoutInMs != 0L) { | |||
| output.WriteRawTag(40); | |||
| output.WriteInt64(HeartbeatTimeoutInMs); | |||
| } | |||
| if (ShutdownBarrierTimeoutInMs != 0L) { | |||
| output.WriteRawTag(56); | |||
| output.WriteInt64(ShutdownBarrierTimeoutInMs); | |||
| } | |||
| if (AgentDestructionWithoutShutdown != false) { | |||
| output.WriteRawTag(64); | |||
| output.WriteBool(AgentDestructionWithoutShutdown); | |||
| } | |||
| recoverableJobs_.WriteTo(output, _repeated_recoverableJobs_codec); | |||
| coordinatedJobList_.WriteTo(output, _repeated_coordinatedJobList_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) { | |||
| if (ServiceType.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(ServiceType); | |||
| } | |||
| if (ServiceLeader.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(ServiceLeader); | |||
| } | |||
| if (EnableHealthCheck != false) { | |||
| output.WriteRawTag(24); | |||
| output.WriteBool(EnableHealthCheck); | |||
| } | |||
| if (ClusterRegisterTimeoutInMs != 0L) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(ClusterRegisterTimeoutInMs); | |||
| } | |||
| if (HeartbeatTimeoutInMs != 0L) { | |||
| output.WriteRawTag(40); | |||
| output.WriteInt64(HeartbeatTimeoutInMs); | |||
| } | |||
| if (ShutdownBarrierTimeoutInMs != 0L) { | |||
| output.WriteRawTag(56); | |||
| output.WriteInt64(ShutdownBarrierTimeoutInMs); | |||
| } | |||
| if (AgentDestructionWithoutShutdown != false) { | |||
| output.WriteRawTag(64); | |||
| output.WriteBool(AgentDestructionWithoutShutdown); | |||
| } | |||
| recoverableJobs_.WriteTo(ref output, _repeated_recoverableJobs_codec); | |||
| coordinatedJobList_.WriteTo(ref output, _repeated_coordinatedJobList_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; | |||
| if (ServiceType.Length != 0) { | |||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceType); | |||
| } | |||
| if (ServiceLeader.Length != 0) { | |||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceLeader); | |||
| } | |||
| if (EnableHealthCheck != false) { | |||
| size += 1 + 1; | |||
| } | |||
| if (ClusterRegisterTimeoutInMs != 0L) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(ClusterRegisterTimeoutInMs); | |||
| } | |||
| if (HeartbeatTimeoutInMs != 0L) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(HeartbeatTimeoutInMs); | |||
| } | |||
| size += coordinatedJobList_.CalculateSize(_repeated_coordinatedJobList_codec); | |||
| if (ShutdownBarrierTimeoutInMs != 0L) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(ShutdownBarrierTimeoutInMs); | |||
| } | |||
| if (AgentDestructionWithoutShutdown != false) { | |||
| size += 1 + 1; | |||
| } | |||
| size += recoverableJobs_.CalculateSize(_repeated_recoverableJobs_codec); | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| return size; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CoordinationServiceConfig other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| if (other.ServiceType.Length != 0) { | |||
| ServiceType = other.ServiceType; | |||
| } | |||
| if (other.ServiceLeader.Length != 0) { | |||
| ServiceLeader = other.ServiceLeader; | |||
| } | |||
| if (other.EnableHealthCheck != false) { | |||
| EnableHealthCheck = other.EnableHealthCheck; | |||
| } | |||
| if (other.ClusterRegisterTimeoutInMs != 0L) { | |||
| ClusterRegisterTimeoutInMs = other.ClusterRegisterTimeoutInMs; | |||
| } | |||
| if (other.HeartbeatTimeoutInMs != 0L) { | |||
| HeartbeatTimeoutInMs = other.HeartbeatTimeoutInMs; | |||
| } | |||
| coordinatedJobList_.Add(other.coordinatedJobList_); | |||
| if (other.ShutdownBarrierTimeoutInMs != 0L) { | |||
| ShutdownBarrierTimeoutInMs = other.ShutdownBarrierTimeoutInMs; | |||
| } | |||
| if (other.AgentDestructionWithoutShutdown != false) { | |||
| AgentDestructionWithoutShutdown = other.AgentDestructionWithoutShutdown; | |||
| } | |||
| recoverableJobs_.Add(other.recoverableJobs_); | |||
| _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: { | |||
| ServiceType = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| ServiceLeader = input.ReadString(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| EnableHealthCheck = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| ClusterRegisterTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 40: { | |||
| HeartbeatTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 56: { | |||
| ShutdownBarrierTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 64: { | |||
| AgentDestructionWithoutShutdown = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 74: { | |||
| recoverableJobs_.AddEntriesFrom(input, _repeated_recoverableJobs_codec); | |||
| break; | |||
| } | |||
| case 82: { | |||
| coordinatedJobList_.AddEntriesFrom(input, _repeated_coordinatedJobList_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: { | |||
| ServiceType = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| ServiceLeader = input.ReadString(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| EnableHealthCheck = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| ClusterRegisterTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 40: { | |||
| HeartbeatTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 56: { | |||
| ShutdownBarrierTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 64: { | |||
| AgentDestructionWithoutShutdown = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 74: { | |||
| recoverableJobs_.AddEntriesFrom(ref input, _repeated_recoverableJobs_codec); | |||
| break; | |||
| } | |||
| case 82: { | |||
| coordinatedJobList_.AddEntriesFrom(ref input, _repeated_coordinatedJobList_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| #endregion | |||
| } | |||
| #endregion Designer generated code | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/python/framework/cpp_shape_inference.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -55,23 +55,31 @@ namespace Tensorflow { | |||
| } | |||
| #region Messages | |||
| public sealed partial class CppShapeInferenceResult : pb::IMessage<CppShapeInferenceResult> { | |||
| public sealed partial class CppShapeInferenceResult : pb::IMessage<CppShapeInferenceResult> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CppShapeInferenceResult> _parser = new pb::MessageParser<CppShapeInferenceResult>(() => new CppShapeInferenceResult()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CppShapeInferenceResult> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CppShapeInferenceReflection.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 CppShapeInferenceResult() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -79,6 +87,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CppShapeInferenceResult(CppShapeInferenceResult other) : this() { | |||
| shape_ = other.shape_ != null ? other.shape_.Clone() : null; | |||
| handleData_ = other.handleData_ != null ? other.handleData_.Clone() : null; | |||
| @@ -86,6 +95,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CppShapeInferenceResult Clone() { | |||
| return new CppShapeInferenceResult(this); | |||
| } | |||
| @@ -94,6 +104,7 @@ namespace Tensorflow { | |||
| public const int ShapeFieldNumber = 1; | |||
| 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 { | |||
| @@ -105,6 +116,7 @@ namespace Tensorflow { | |||
| public const int HandleDataFieldNumber = 4; | |||
| private global::Tensorflow.CppShapeInferenceResult.Types.HandleData handleData_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.CppShapeInferenceResult.Types.HandleData HandleData { | |||
| get { return handleData_; } | |||
| set { | |||
| @@ -113,11 +125,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CppShapeInferenceResult); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CppShapeInferenceResult other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -131,6 +145,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (shape_ != null) hash ^= Shape.GetHashCode(); | |||
| @@ -142,12 +157,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (shape_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(Shape); | |||
| @@ -159,9 +179,29 @@ namespace Tensorflow { | |||
| 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 (shape_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(Shape); | |||
| } | |||
| if (handleData_ != null) { | |||
| output.WriteRawTag(34); | |||
| output.WriteMessage(HandleData); | |||
| } | |||
| 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 (shape_ != null) { | |||
| @@ -177,6 +217,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CppShapeInferenceResult other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -197,7 +238,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -220,29 +265,68 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| if (shape_ == null) { | |||
| Shape = new global::Tensorflow.TensorShapeProto(); | |||
| } | |||
| input.ReadMessage(Shape); | |||
| break; | |||
| } | |||
| case 34: { | |||
| if (handleData_ == null) { | |||
| HandleData = new global::Tensorflow.CppShapeInferenceResult.Types.HandleData(); | |||
| } | |||
| input.ReadMessage(HandleData); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the CppShapeInferenceResult message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| public sealed partial class HandleShapeAndType : pb::IMessage<HandleShapeAndType> { | |||
| public sealed partial class HandleShapeAndType : pb::IMessage<HandleShapeAndType> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<HandleShapeAndType> _parser = new pb::MessageParser<HandleShapeAndType>(() => new HandleShapeAndType()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<HandleShapeAndType> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CppShapeInferenceResult.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 HandleShapeAndType() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -250,6 +334,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public HandleShapeAndType(HandleShapeAndType other) : this() { | |||
| shape_ = other.shape_ != null ? other.shape_.Clone() : null; | |||
| dtype_ = other.dtype_; | |||
| @@ -258,6 +343,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public HandleShapeAndType Clone() { | |||
| return new HandleShapeAndType(this); | |||
| } | |||
| @@ -266,6 +352,7 @@ namespace Tensorflow { | |||
| public const int ShapeFieldNumber = 1; | |||
| 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 { | |||
| @@ -277,6 +364,7 @@ namespace Tensorflow { | |||
| public const int DtypeFieldNumber = 2; | |||
| 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 { | |||
| @@ -288,6 +376,7 @@ namespace Tensorflow { | |||
| public const int TypeFieldNumber = 4; | |||
| private global::Tensorflow.FullTypeDef type_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.FullTypeDef Type { | |||
| get { return type_; } | |||
| set { | |||
| @@ -296,11 +385,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as HandleShapeAndType); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(HandleShapeAndType other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -315,6 +406,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (shape_ != null) hash ^= Shape.GetHashCode(); | |||
| @@ -327,12 +419,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (shape_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(Shape); | |||
| @@ -348,9 +445,33 @@ namespace Tensorflow { | |||
| 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 (shape_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(Shape); | |||
| } | |||
| if (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(16); | |||
| output.WriteEnum((int) Dtype); | |||
| } | |||
| if (type_ != null) { | |||
| output.WriteRawTag(34); | |||
| output.WriteMessage(Type); | |||
| } | |||
| 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 (shape_ != null) { | |||
| @@ -369,6 +490,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(HandleShapeAndType other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -392,7 +514,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -419,27 +545,69 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| if (shape_ == null) { | |||
| Shape = new global::Tensorflow.TensorShapeProto(); | |||
| } | |||
| input.ReadMessage(Shape); | |||
| break; | |||
| } | |||
| case 16: { | |||
| Dtype = (global::Tensorflow.DataType) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 34: { | |||
| if (type_ == null) { | |||
| Type = new global::Tensorflow.FullTypeDef(); | |||
| } | |||
| input.ReadMessage(Type); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class HandleData : pb::IMessage<HandleData> { | |||
| public sealed partial class HandleData : pb::IMessage<HandleData> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<HandleData> _parser = new pb::MessageParser<HandleData>(() => new HandleData()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<HandleData> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CppShapeInferenceResult.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 HandleData() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -447,6 +615,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public HandleData(HandleData other) : this() { | |||
| isSet_ = other.isSet_; | |||
| shapeAndType_ = other.shapeAndType_.Clone(); | |||
| @@ -454,6 +623,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public HandleData Clone() { | |||
| return new HandleData(this); | |||
| } | |||
| @@ -462,6 +632,7 @@ namespace Tensorflow { | |||
| public const int IsSetFieldNumber = 1; | |||
| private bool isSet_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool IsSet { | |||
| get { return isSet_; } | |||
| set { | |||
| @@ -478,16 +649,19 @@ namespace Tensorflow { | |||
| /// Only valid if <is_set>. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.CppShapeInferenceResult.Types.HandleShapeAndType> ShapeAndType { | |||
| get { return shapeAndType_; } | |||
| get { return shapeAndType_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as HandleData); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(HandleData other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -501,6 +675,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (IsSet != false) hash ^= IsSet.GetHashCode(); | |||
| @@ -512,12 +687,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (IsSet != false) { | |||
| output.WriteRawTag(8); | |||
| output.WriteBool(IsSet); | |||
| @@ -526,9 +706,26 @@ namespace Tensorflow { | |||
| 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 (IsSet != false) { | |||
| output.WriteRawTag(8); | |||
| output.WriteBool(IsSet); | |||
| } | |||
| shapeAndType_.WriteTo(ref output, _repeated_shapeAndType_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; | |||
| if (IsSet != false) { | |||
| @@ -542,6 +739,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(HandleData other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -554,7 +752,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -571,8 +773,32 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| IsSet = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| shapeAndType_.AddEntriesFrom(ref input, _repeated_shapeAndType_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| } | |||
| @@ -580,23 +806,31 @@ namespace Tensorflow { | |||
| } | |||
| public sealed partial class CppShapeInferenceInputsNeeded : pb::IMessage<CppShapeInferenceInputsNeeded> { | |||
| public sealed partial class CppShapeInferenceInputsNeeded : pb::IMessage<CppShapeInferenceInputsNeeded> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<CppShapeInferenceInputsNeeded> _parser = new pb::MessageParser<CppShapeInferenceInputsNeeded>(() => new CppShapeInferenceInputsNeeded()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<CppShapeInferenceInputsNeeded> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.CppShapeInferenceReflection.Descriptor.MessageTypes[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 CppShapeInferenceInputsNeeded() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -604,6 +838,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CppShapeInferenceInputsNeeded(CppShapeInferenceInputsNeeded other) : this() { | |||
| inputTensorsNeeded_ = other.inputTensorsNeeded_.Clone(); | |||
| inputTensorsAsShapesNeeded_ = other.inputTensorsAsShapesNeeded_.Clone(); | |||
| @@ -611,6 +846,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public CppShapeInferenceInputsNeeded Clone() { | |||
| return new CppShapeInferenceInputsNeeded(this); | |||
| } | |||
| @@ -621,6 +857,7 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForInt32(10); | |||
| private readonly pbc::RepeatedField<int> inputTensorsNeeded_ = new pbc::RepeatedField<int>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<int> InputTensorsNeeded { | |||
| get { return inputTensorsNeeded_; } | |||
| } | |||
| @@ -631,16 +868,19 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForInt32(18); | |||
| private readonly pbc::RepeatedField<int> inputTensorsAsShapesNeeded_ = new pbc::RepeatedField<int>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<int> InputTensorsAsShapesNeeded { | |||
| get { return inputTensorsAsShapesNeeded_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as CppShapeInferenceInputsNeeded); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(CppShapeInferenceInputsNeeded other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -654,6 +894,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= inputTensorsNeeded_.GetHashCode(); | |||
| @@ -665,20 +906,39 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| inputTensorsNeeded_.WriteTo(output, _repeated_inputTensorsNeeded_codec); | |||
| inputTensorsAsShapesNeeded_.WriteTo(output, _repeated_inputTensorsAsShapesNeeded_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) { | |||
| inputTensorsNeeded_.WriteTo(ref output, _repeated_inputTensorsNeeded_codec); | |||
| inputTensorsAsShapesNeeded_.WriteTo(ref output, _repeated_inputTensorsAsShapesNeeded_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 += inputTensorsNeeded_.CalculateSize(_repeated_inputTensorsNeeded_codec); | |||
| @@ -690,6 +950,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(CppShapeInferenceInputsNeeded other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -700,7 +961,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -719,7 +984,33 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: | |||
| case 8: { | |||
| inputTensorsNeeded_.AddEntriesFrom(ref input, _repeated_inputTensorsNeeded_codec); | |||
| break; | |||
| } | |||
| case 18: | |||
| case 16: { | |||
| inputTensorsAsShapesNeeded_.AddEntriesFrom(ref input, _repeated_inputTensorsAsShapesNeeded_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/debug.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -55,23 +55,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Option for watching a node in TensorFlow Debugger (tfdbg). | |||
| /// </summary> | |||
| public sealed partial class DebugTensorWatch : pb::IMessage<DebugTensorWatch> { | |||
| public sealed partial class DebugTensorWatch : pb::IMessage<DebugTensorWatch> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DebugTensorWatch> _parser = new pb::MessageParser<DebugTensorWatch>(() => new DebugTensorWatch()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DebugTensorWatch> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DebugReflection.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 DebugTensorWatch() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -79,6 +87,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebugTensorWatch(DebugTensorWatch other) : this() { | |||
| nodeName_ = other.nodeName_; | |||
| outputSlot_ = other.outputSlot_; | |||
| @@ -89,6 +98,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebugTensorWatch Clone() { | |||
| return new DebugTensorWatch(this); | |||
| } | |||
| @@ -102,6 +112,7 @@ namespace Tensorflow { | |||
| /// general. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string NodeName { | |||
| get { return nodeName_; } | |||
| set { | |||
| @@ -120,6 +131,7 @@ namespace Tensorflow { | |||
| /// errors currently. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int OutputSlot { | |||
| get { return outputSlot_; } | |||
| set { | |||
| @@ -138,6 +150,7 @@ namespace Tensorflow { | |||
| /// e.g., {"DebugIdentity", "DebugNanCount"} | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> DebugOps { | |||
| get { return debugOps_; } | |||
| } | |||
| @@ -170,6 +183,7 @@ namespace Tensorflow { | |||
| /// TODO(cais): More visible documentation of this in g3docs. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> DebugUrls { | |||
| get { return debugUrls_; } | |||
| } | |||
| @@ -182,6 +196,7 @@ namespace Tensorflow { | |||
| /// incompatibility). Instead, just log the failure. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool TolerateDebugOpCreationFailures { | |||
| get { return tolerateDebugOpCreationFailures_; } | |||
| set { | |||
| @@ -190,11 +205,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DebugTensorWatch); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DebugTensorWatch other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -211,6 +228,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (NodeName.Length != 0) hash ^= NodeName.GetHashCode(); | |||
| @@ -225,12 +243,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (NodeName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(NodeName); | |||
| @@ -248,9 +271,35 @@ namespace Tensorflow { | |||
| 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 (NodeName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(NodeName); | |||
| } | |||
| if (OutputSlot != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(OutputSlot); | |||
| } | |||
| debugOps_.WriteTo(ref output, _repeated_debugOps_codec); | |||
| debugUrls_.WriteTo(ref output, _repeated_debugUrls_codec); | |||
| if (TolerateDebugOpCreationFailures != false) { | |||
| output.WriteRawTag(40); | |||
| output.WriteBool(TolerateDebugOpCreationFailures); | |||
| } | |||
| 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 (NodeName.Length != 0) { | |||
| @@ -271,6 +320,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DebugTensorWatch other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -290,7 +340,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -319,30 +373,74 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| NodeName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| OutputSlot = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| debugOps_.AddEntriesFrom(ref input, _repeated_debugOps_codec); | |||
| break; | |||
| } | |||
| case 34: { | |||
| debugUrls_.AddEntriesFrom(ref input, _repeated_debugUrls_codec); | |||
| break; | |||
| } | |||
| case 40: { | |||
| TolerateDebugOpCreationFailures = input.ReadBool(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Options for initializing DebuggerState in TensorFlow Debugger (tfdbg). | |||
| /// </summary> | |||
| public sealed partial class DebugOptions : pb::IMessage<DebugOptions> { | |||
| public sealed partial class DebugOptions : pb::IMessage<DebugOptions> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DebugOptions> _parser = new pb::MessageParser<DebugOptions>(() => new DebugOptions()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DebugOptions> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[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 DebugOptions() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -350,6 +448,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebugOptions(DebugOptions other) : this() { | |||
| debugTensorWatchOpts_ = other.debugTensorWatchOpts_.Clone(); | |||
| globalStep_ = other.globalStep_; | |||
| @@ -358,6 +457,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebugOptions Clone() { | |||
| return new DebugOptions(this); | |||
| } | |||
| @@ -371,6 +471,7 @@ namespace Tensorflow { | |||
| /// Debugging options | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.DebugTensorWatch> DebugTensorWatchOpts { | |||
| get { return debugTensorWatchOpts_; } | |||
| } | |||
| @@ -384,6 +485,7 @@ namespace Tensorflow { | |||
| /// step count. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long GlobalStep { | |||
| get { return globalStep_; } | |||
| set { | |||
| @@ -401,6 +503,7 @@ namespace Tensorflow { | |||
| /// are cleaned up from the disk after each Session.run. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool ResetDiskByteUsage { | |||
| get { return resetDiskByteUsage_; } | |||
| set { | |||
| @@ -409,11 +512,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DebugOptions); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DebugOptions other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -428,6 +533,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= debugTensorWatchOpts_.GetHashCode(); | |||
| @@ -440,12 +546,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| debugTensorWatchOpts_.WriteTo(output, _repeated_debugTensorWatchOpts_codec); | |||
| if (GlobalStep != 0L) { | |||
| output.WriteRawTag(80); | |||
| @@ -458,9 +569,30 @@ namespace Tensorflow { | |||
| 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) { | |||
| debugTensorWatchOpts_.WriteTo(ref output, _repeated_debugTensorWatchOpts_codec); | |||
| if (GlobalStep != 0L) { | |||
| output.WriteRawTag(80); | |||
| output.WriteInt64(GlobalStep); | |||
| } | |||
| if (ResetDiskByteUsage != false) { | |||
| output.WriteRawTag(88); | |||
| output.WriteBool(ResetDiskByteUsage); | |||
| } | |||
| 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 += debugTensorWatchOpts_.CalculateSize(_repeated_debugTensorWatchOpts_codec); | |||
| @@ -477,6 +609,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DebugOptions other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -492,7 +625,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -513,27 +650,63 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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 34: { | |||
| debugTensorWatchOpts_.AddEntriesFrom(ref input, _repeated_debugTensorWatchOpts_codec); | |||
| break; | |||
| } | |||
| case 80: { | |||
| GlobalStep = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 88: { | |||
| ResetDiskByteUsage = input.ReadBool(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class DebuggedSourceFile : pb::IMessage<DebuggedSourceFile> { | |||
| public sealed partial class DebuggedSourceFile : pb::IMessage<DebuggedSourceFile> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DebuggedSourceFile> _parser = new pb::MessageParser<DebuggedSourceFile>(() => new DebuggedSourceFile()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DebuggedSourceFile> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[2]; } | |||
| } | |||
| [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 DebuggedSourceFile() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -541,6 +714,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebuggedSourceFile(DebuggedSourceFile other) : this() { | |||
| host_ = other.host_; | |||
| filePath_ = other.filePath_; | |||
| @@ -551,6 +725,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebuggedSourceFile Clone() { | |||
| return new DebuggedSourceFile(this); | |||
| } | |||
| @@ -562,6 +737,7 @@ namespace Tensorflow { | |||
| /// The host name on which a source code file is located. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Host { | |||
| get { return host_; } | |||
| set { | |||
| @@ -576,6 +752,7 @@ namespace Tensorflow { | |||
| /// Path to the source code file. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string FilePath { | |||
| get { return filePath_; } | |||
| set { | |||
| @@ -590,6 +767,7 @@ namespace Tensorflow { | |||
| /// The timestamp at which the source code file is last modified. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long LastModified { | |||
| get { return lastModified_; } | |||
| set { | |||
| @@ -604,6 +782,7 @@ namespace Tensorflow { | |||
| /// Byte size of the file. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long Bytes { | |||
| get { return bytes_; } | |||
| set { | |||
| @@ -620,16 +799,19 @@ namespace Tensorflow { | |||
| /// Line-by-line content of the source code file. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> Lines { | |||
| get { return lines_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DebuggedSourceFile); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DebuggedSourceFile other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -646,6 +828,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Host.Length != 0) hash ^= Host.GetHashCode(); | |||
| @@ -660,12 +843,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Host.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Host); | |||
| @@ -686,9 +874,38 @@ namespace Tensorflow { | |||
| 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 (Host.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Host); | |||
| } | |||
| if (FilePath.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(FilePath); | |||
| } | |||
| if (LastModified != 0L) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt64(LastModified); | |||
| } | |||
| if (Bytes != 0L) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(Bytes); | |||
| } | |||
| lines_.WriteTo(ref output, _repeated_lines_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; | |||
| if (Host.Length != 0) { | |||
| @@ -711,6 +928,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DebuggedSourceFile other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -732,7 +950,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -761,27 +983,71 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Host = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| FilePath = input.ReadString(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| LastModified = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| Bytes = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| lines_.AddEntriesFrom(ref input, _repeated_lines_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class DebuggedSourceFiles : pb::IMessage<DebuggedSourceFiles> { | |||
| public sealed partial class DebuggedSourceFiles : pb::IMessage<DebuggedSourceFiles> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DebuggedSourceFiles> _parser = new pb::MessageParser<DebuggedSourceFiles>(() => new DebuggedSourceFiles()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DebuggedSourceFiles> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DebugReflection.Descriptor.MessageTypes[3]; } | |||
| } | |||
| [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 DebuggedSourceFiles() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -789,12 +1055,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebuggedSourceFiles(DebuggedSourceFiles other) : this() { | |||
| sourceFiles_ = other.sourceFiles_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DebuggedSourceFiles Clone() { | |||
| return new DebuggedSourceFiles(this); | |||
| } | |||
| @@ -808,16 +1076,19 @@ namespace Tensorflow { | |||
| /// A collection of source code files. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.DebuggedSourceFile> SourceFiles { | |||
| get { return sourceFiles_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DebuggedSourceFiles); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DebuggedSourceFiles other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -830,6 +1101,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= sourceFiles_.GetHashCode(); | |||
| @@ -840,19 +1112,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| sourceFiles_.WriteTo(output, _repeated_sourceFiles_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) { | |||
| sourceFiles_.WriteTo(ref output, _repeated_sourceFiles_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 += sourceFiles_.CalculateSize(_repeated_sourceFiles_codec); | |||
| @@ -863,6 +1153,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DebuggedSourceFiles other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -872,7 +1163,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -885,7 +1180,27 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| sourceFiles_.AddEntriesFrom(ref input, _repeated_sourceFiles_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/device_attributes.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -30,44 +30,53 @@ namespace Tensorflow { | |||
| "OAoKTG9jYWxMaW5rcxIqCgRsaW5rGAEgAygLMhwudGVuc29yZmxvdy5JbnRl", | |||
| "cmNvbm5lY3RMaW5rIloKDkRldmljZUxvY2FsaXR5Eg4KBmJ1c19pZBgBIAEo", | |||
| "BRIRCgludW1hX25vZGUYAiABKAUSJQoFbGlua3MYAyABKAsyFi50ZW5zb3Jm", | |||
| "bG93LkxvY2FsTGlua3MirAEKEERldmljZUF0dHJpYnV0ZXMSDAoEbmFtZRgB", | |||
| "bG93LkxvY2FsTGlua3MiwwEKEERldmljZUF0dHJpYnV0ZXMSDAoEbmFtZRgB", | |||
| "IAEoCRITCgtkZXZpY2VfdHlwZRgCIAEoCRIUCgxtZW1vcnlfbGltaXQYBCAB", | |||
| "KAMSLAoIbG9jYWxpdHkYBSABKAsyGi50ZW5zb3JmbG93LkRldmljZUxvY2Fs", | |||
| "aXR5EhMKC2luY2FybmF0aW9uGAYgASgGEhwKFHBoeXNpY2FsX2RldmljZV9k", | |||
| "ZXNjGAcgASgJQpEBChhvcmcudGVuc29yZmxvdy5mcmFtZXdvcmtCFkRldmlj", | |||
| "ZUF0dHJpYnV0ZXNQcm90b3NQAVpYZ2l0aHViLmNvbS90ZW5zb3JmbG93L3Rl", | |||
| "bnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL2ZyYW1ld29yay9kZXZpY2Vf", | |||
| "YXR0cmlidXRlc19nb19wcm90b/gBAWIGcHJvdG8z")); | |||
| "ZXNjGAcgASgJEhUKDXhsYV9nbG9iYWxfaWQYCCABKANCkQEKGG9yZy50ZW5z", | |||
| "b3JmbG93LmZyYW1ld29ya0IWRGV2aWNlQXR0cmlidXRlc1Byb3Rvc1ABWlhn", | |||
| "aXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dv", | |||
| "L2NvcmUvZnJhbWV3b3JrL2RldmljZV9hdHRyaWJ1dGVzX2dvX3Byb3Rv+AEB", | |||
| "YgZwcm90bzM=")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.InterconnectLink), global::Tensorflow.InterconnectLink.Parser, new[]{ "DeviceId", "Type", "Strength" }, null, null, null, null), | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.LocalLinks), global::Tensorflow.LocalLinks.Parser, new[]{ "Link" }, null, null, null, null), | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DeviceLocality), global::Tensorflow.DeviceLocality.Parser, new[]{ "BusId", "NumaNode", "Links" }, null, null, null, null), | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DeviceAttributes), global::Tensorflow.DeviceAttributes.Parser, new[]{ "Name", "DeviceType", "MemoryLimit", "Locality", "Incarnation", "PhysicalDeviceDesc" }, null, null, null, null) | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DeviceAttributes), global::Tensorflow.DeviceAttributes.Parser, new[]{ "Name", "DeviceType", "MemoryLimit", "Locality", "Incarnation", "PhysicalDeviceDesc", "XlaGlobalId" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| public sealed partial class InterconnectLink : pb::IMessage<InterconnectLink> { | |||
| public sealed partial class InterconnectLink : pb::IMessage<InterconnectLink> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<InterconnectLink> _parser = new pb::MessageParser<InterconnectLink>(() => new InterconnectLink()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<InterconnectLink> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DeviceAttributesReflection.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 InterconnectLink() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -75,6 +84,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public InterconnectLink(InterconnectLink other) : this() { | |||
| deviceId_ = other.deviceId_; | |||
| type_ = other.type_; | |||
| @@ -83,6 +93,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public InterconnectLink Clone() { | |||
| return new InterconnectLink(this); | |||
| } | |||
| @@ -91,6 +102,7 @@ namespace Tensorflow { | |||
| public const int DeviceIdFieldNumber = 1; | |||
| private int deviceId_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int DeviceId { | |||
| get { return deviceId_; } | |||
| set { | |||
| @@ -102,6 +114,7 @@ namespace Tensorflow { | |||
| public const int TypeFieldNumber = 2; | |||
| private string type_ = ""; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Type { | |||
| get { return type_; } | |||
| set { | |||
| @@ -113,6 +126,7 @@ namespace Tensorflow { | |||
| public const int StrengthFieldNumber = 3; | |||
| private int strength_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int Strength { | |||
| get { return strength_; } | |||
| set { | |||
| @@ -121,11 +135,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as InterconnectLink); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(InterconnectLink other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -140,6 +156,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); | |||
| @@ -152,12 +169,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (DeviceId != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(DeviceId); | |||
| @@ -173,9 +195,33 @@ namespace Tensorflow { | |||
| 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 (DeviceId != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(DeviceId); | |||
| } | |||
| if (Type.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(Type); | |||
| } | |||
| if (Strength != 0) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt32(Strength); | |||
| } | |||
| 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 (DeviceId != 0) { | |||
| @@ -194,6 +240,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(InterconnectLink other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -211,7 +258,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -232,27 +283,63 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| DeviceId = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| Type = input.ReadString(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| Strength = input.ReadInt32(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class LocalLinks : pb::IMessage<LocalLinks> { | |||
| public sealed partial class LocalLinks : pb::IMessage<LocalLinks> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<LocalLinks> _parser = new pb::MessageParser<LocalLinks>(() => new LocalLinks()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<LocalLinks> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DeviceAttributesReflection.Descriptor.MessageTypes[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 LocalLinks() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -260,12 +347,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public LocalLinks(LocalLinks other) : this() { | |||
| link_ = other.link_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public LocalLinks Clone() { | |||
| return new LocalLinks(this); | |||
| } | |||
| @@ -276,16 +365,19 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(10, global::Tensorflow.InterconnectLink.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.InterconnectLink> link_ = new pbc::RepeatedField<global::Tensorflow.InterconnectLink>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.InterconnectLink> Link { | |||
| get { return link_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as LocalLinks); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(LocalLinks other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -298,6 +390,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= link_.GetHashCode(); | |||
| @@ -308,19 +401,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| link_.WriteTo(output, _repeated_link_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) { | |||
| link_.WriteTo(ref output, _repeated_link_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 += link_.CalculateSize(_repeated_link_codec); | |||
| @@ -331,6 +442,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(LocalLinks other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -340,7 +452,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -353,27 +469,55 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| link_.AddEntriesFrom(ref input, _repeated_link_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class DeviceLocality : pb::IMessage<DeviceLocality> { | |||
| public sealed partial class DeviceLocality : pb::IMessage<DeviceLocality> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DeviceLocality> _parser = new pb::MessageParser<DeviceLocality>(() => new DeviceLocality()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DeviceLocality> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DeviceAttributesReflection.Descriptor.MessageTypes[2]; } | |||
| } | |||
| [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 DeviceLocality() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -381,6 +525,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DeviceLocality(DeviceLocality other) : this() { | |||
| busId_ = other.busId_; | |||
| numaNode_ = other.numaNode_; | |||
| @@ -389,6 +534,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DeviceLocality Clone() { | |||
| return new DeviceLocality(this); | |||
| } | |||
| @@ -401,6 +547,7 @@ namespace Tensorflow { | |||
| /// no specific locality. Specific localities are indexed from 1. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int BusId { | |||
| get { return busId_; } | |||
| set { | |||
| @@ -415,6 +562,7 @@ namespace Tensorflow { | |||
| /// Optional NUMA locality of device. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int NumaNode { | |||
| get { return numaNode_; } | |||
| set { | |||
| @@ -429,6 +577,7 @@ namespace Tensorflow { | |||
| /// Optional local interconnect links to other devices. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.LocalLinks Links { | |||
| get { return links_; } | |||
| set { | |||
| @@ -437,11 +586,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DeviceLocality); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DeviceLocality other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -456,6 +607,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (BusId != 0) hash ^= BusId.GetHashCode(); | |||
| @@ -468,12 +620,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (BusId != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(BusId); | |||
| @@ -489,9 +646,33 @@ namespace Tensorflow { | |||
| 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 (BusId != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(BusId); | |||
| } | |||
| if (NumaNode != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(NumaNode); | |||
| } | |||
| if (links_ != null) { | |||
| output.WriteRawTag(26); | |||
| output.WriteMessage(Links); | |||
| } | |||
| 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 (BusId != 0) { | |||
| @@ -510,6 +691,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DeviceLocality other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -530,7 +712,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -554,27 +740,66 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| BusId = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| NumaNode = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| if (links_ == null) { | |||
| Links = new global::Tensorflow.LocalLinks(); | |||
| } | |||
| input.ReadMessage(Links); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class DeviceAttributes : pb::IMessage<DeviceAttributes> { | |||
| public sealed partial class DeviceAttributes : pb::IMessage<DeviceAttributes> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DeviceAttributes> _parser = new pb::MessageParser<DeviceAttributes>(() => new DeviceAttributes()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DeviceAttributes> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.DeviceAttributesReflection.Descriptor.MessageTypes[3]; } | |||
| } | |||
| [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 DeviceAttributes() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -582,6 +807,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DeviceAttributes(DeviceAttributes other) : this() { | |||
| name_ = other.name_; | |||
| deviceType_ = other.deviceType_; | |||
| @@ -589,10 +815,12 @@ namespace Tensorflow { | |||
| locality_ = other.locality_ != null ? other.locality_.Clone() : null; | |||
| incarnation_ = other.incarnation_; | |||
| physicalDeviceDesc_ = other.physicalDeviceDesc_; | |||
| xlaGlobalId_ = other.xlaGlobalId_; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DeviceAttributes Clone() { | |||
| return new DeviceAttributes(this); | |||
| } | |||
| @@ -604,6 +832,7 @@ namespace Tensorflow { | |||
| /// Fully specified name of the device within a cluster. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -618,6 +847,7 @@ namespace Tensorflow { | |||
| /// String representation of device_type. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string DeviceType { | |||
| get { return deviceType_; } | |||
| set { | |||
| @@ -632,6 +862,7 @@ namespace Tensorflow { | |||
| /// Memory capacity of device in bytes. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long MemoryLimit { | |||
| get { return memoryLimit_; } | |||
| set { | |||
| @@ -647,6 +878,7 @@ namespace Tensorflow { | |||
| /// for supporting efficient data transfers. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.DeviceLocality Locality { | |||
| get { return locality_; } | |||
| set { | |||
| @@ -662,6 +894,7 @@ namespace Tensorflow { | |||
| /// initialized. "incarnation" should never be 0. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ulong Incarnation { | |||
| get { return incarnation_; } | |||
| set { | |||
| @@ -676,6 +909,7 @@ namespace Tensorflow { | |||
| /// String representation of the physical device that this device maps to. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string PhysicalDeviceDesc { | |||
| get { return physicalDeviceDesc_; } | |||
| set { | |||
| @@ -683,12 +917,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| /// <summary>Field number for the "xla_global_id" field.</summary> | |||
| public const int XlaGlobalIdFieldNumber = 8; | |||
| private long xlaGlobalId_; | |||
| /// <summary> | |||
| /// A physical device ID for use in XLA DeviceAssignments, unique across | |||
| /// clients in a multi-client setup. Set to -1 if unavailable, non-negative | |||
| /// otherwise. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long XlaGlobalId { | |||
| get { return xlaGlobalId_; } | |||
| set { | |||
| xlaGlobalId_ = value; | |||
| } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DeviceAttributes); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DeviceAttributes other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -702,10 +955,12 @@ namespace Tensorflow { | |||
| if (!object.Equals(Locality, other.Locality)) return false; | |||
| if (Incarnation != other.Incarnation) return false; | |||
| if (PhysicalDeviceDesc != other.PhysicalDeviceDesc) return false; | |||
| if (XlaGlobalId != other.XlaGlobalId) 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(); | |||
| @@ -714,6 +969,7 @@ namespace Tensorflow { | |||
| if (locality_ != null) hash ^= Locality.GetHashCode(); | |||
| if (Incarnation != 0UL) hash ^= Incarnation.GetHashCode(); | |||
| if (PhysicalDeviceDesc.Length != 0) hash ^= PhysicalDeviceDesc.GetHashCode(); | |||
| if (XlaGlobalId != 0L) hash ^= XlaGlobalId.GetHashCode(); | |||
| if (_unknownFields != null) { | |||
| hash ^= _unknownFields.GetHashCode(); | |||
| } | |||
| @@ -721,12 +977,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -751,12 +1012,56 @@ namespace Tensorflow { | |||
| output.WriteRawTag(58); | |||
| output.WriteString(PhysicalDeviceDesc); | |||
| } | |||
| if (XlaGlobalId != 0L) { | |||
| output.WriteRawTag(64); | |||
| output.WriteInt64(XlaGlobalId); | |||
| } | |||
| 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 (DeviceType.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(DeviceType); | |||
| } | |||
| if (MemoryLimit != 0L) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(MemoryLimit); | |||
| } | |||
| if (locality_ != null) { | |||
| output.WriteRawTag(42); | |||
| output.WriteMessage(Locality); | |||
| } | |||
| if (Incarnation != 0UL) { | |||
| output.WriteRawTag(49); | |||
| output.WriteFixed64(Incarnation); | |||
| } | |||
| if (PhysicalDeviceDesc.Length != 0) { | |||
| output.WriteRawTag(58); | |||
| output.WriteString(PhysicalDeviceDesc); | |||
| } | |||
| if (XlaGlobalId != 0L) { | |||
| output.WriteRawTag(64); | |||
| output.WriteInt64(XlaGlobalId); | |||
| } | |||
| 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) { | |||
| @@ -777,6 +1082,9 @@ namespace Tensorflow { | |||
| if (PhysicalDeviceDesc.Length != 0) { | |||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(PhysicalDeviceDesc); | |||
| } | |||
| if (XlaGlobalId != 0L) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(XlaGlobalId); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| @@ -784,6 +1092,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DeviceAttributes other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -809,11 +1118,18 @@ namespace Tensorflow { | |||
| if (other.PhysicalDeviceDesc.Length != 0) { | |||
| PhysicalDeviceDesc = other.PhysicalDeviceDesc; | |||
| } | |||
| if (other.XlaGlobalId != 0L) { | |||
| XlaGlobalId = other.XlaGlobalId; | |||
| } | |||
| _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) { | |||
| @@ -847,9 +1163,60 @@ namespace Tensorflow { | |||
| PhysicalDeviceDesc = input.ReadString(); | |||
| break; | |||
| } | |||
| case 64: { | |||
| XlaGlobalId = input.ReadInt64(); | |||
| 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: { | |||
| DeviceType = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| MemoryLimit = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| if (locality_ == null) { | |||
| Locality = new global::Tensorflow.DeviceLocality(); | |||
| } | |||
| input.ReadMessage(Locality); | |||
| break; | |||
| } | |||
| case 49: { | |||
| Incarnation = input.ReadFixed64(); | |||
| break; | |||
| } | |||
| case 58: { | |||
| PhysicalDeviceDesc = input.ReadString(); | |||
| break; | |||
| } | |||
| case 64: { | |||
| XlaGlobalId = input.ReadInt64(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -0,0 +1,340 @@ | |||
| // <auto-generated> | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/compiler/xla/service/cpu/executable.proto | |||
| // </auto-generated> | |||
| #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 Xla.Cpu { | |||
| /// <summary>Holder for reflection information generated from tensorflow/compiler/xla/service/cpu/executable.proto</summary> | |||
| public static partial class ExecutableReflection { | |||
| #region Descriptor | |||
| /// <summary>File descriptor for tensorflow/compiler/xla/service/cpu/executable.proto</summary> | |||
| public static pbr::FileDescriptor Descriptor { | |||
| get { return descriptor; } | |||
| } | |||
| private static pbr::FileDescriptor descriptor; | |||
| static ExecutableReflection() { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "CjR0ZW5zb3JmbG93L2NvbXBpbGVyL3hsYS9zZXJ2aWNlL2NwdS9leGVjdXRh", | |||
| "YmxlLnByb3RvEgd4bGEuY3B1Gjd0ZW5zb3JmbG93L2NvbXBpbGVyL3hsYS9z", | |||
| "ZXJ2aWNlL2NwdS94bGFfZnJhbWV3b3JrLnByb3RvGil0ZW5zb3JmbG93L2Nv", | |||
| "bXBpbGVyL3hsYS9zZXJ2aWNlL2hsby5wcm90byLXAQocWGxhUnVudGltZUNw", | |||
| "dUV4ZWN1dGFibGVQcm90bxI+ChZ4bGFfcnVudGltZV9leGVjdXRhYmxlGAEg", | |||
| "ASgLMh4ueGxhLlhsYVJ1bnRpbWVFeGVjdXRhYmxlUHJvdG8SQAoVeGxhX2Zy", | |||
| "YW1ld29ya19tYXBwaW5nGAIgASgLMiEueGxhLmNwdS5YbGFGcmFtZXdvcmtN", | |||
| "YXBwaW5nUHJvdG8SNQoRYnVmZmVyX2Fzc2lnbm1lbnQYAyABKAsyGi54bGEu", | |||
| "QnVmZmVyQXNzaWdubWVudFByb3Rv")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { global::Xla.Cpu.XlaFrameworkReflection.Descriptor, global::Xla.HloReflection.Descriptor, }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Xla.Cpu.XlaRuntimeCpuExecutableProto), global::Xla.Cpu.XlaRuntimeCpuExecutableProto.Parser, new[]{ "XlaRuntimeExecutable", "XlaFrameworkMapping", "BufferAssignment" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| public sealed partial class XlaRuntimeCpuExecutableProto : pb::IMessage<XlaRuntimeCpuExecutableProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<XlaRuntimeCpuExecutableProto> _parser = new pb::MessageParser<XlaRuntimeCpuExecutableProto>(() => new XlaRuntimeCpuExecutableProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<XlaRuntimeCpuExecutableProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Xla.Cpu.ExecutableReflection.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 XlaRuntimeCpuExecutableProto() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public XlaRuntimeCpuExecutableProto(XlaRuntimeCpuExecutableProto other) : this() { | |||
| xlaRuntimeExecutable_ = other.xlaRuntimeExecutable_ != null ? other.xlaRuntimeExecutable_.Clone() : null; | |||
| xlaFrameworkMapping_ = other.xlaFrameworkMapping_ != null ? other.xlaFrameworkMapping_.Clone() : null; | |||
| bufferAssignment_ = other.bufferAssignment_ != null ? other.bufferAssignment_.Clone() : null; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public XlaRuntimeCpuExecutableProto Clone() { | |||
| return new XlaRuntimeCpuExecutableProto(this); | |||
| } | |||
| /// <summary>Field number for the "xla_runtime_executable" field.</summary> | |||
| public const int XlaRuntimeExecutableFieldNumber = 1; | |||
| private global::Xla.XlaRuntimeExecutableProto xlaRuntimeExecutable_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Xla.XlaRuntimeExecutableProto XlaRuntimeExecutable { | |||
| get { return xlaRuntimeExecutable_; } | |||
| set { | |||
| xlaRuntimeExecutable_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "xla_framework_mapping" field.</summary> | |||
| public const int XlaFrameworkMappingFieldNumber = 2; | |||
| private global::Xla.Cpu.XlaFrameworkMappingProto xlaFrameworkMapping_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Xla.Cpu.XlaFrameworkMappingProto XlaFrameworkMapping { | |||
| get { return xlaFrameworkMapping_; } | |||
| set { | |||
| xlaFrameworkMapping_ = value; | |||
| } | |||
| } | |||
| /// <summary>Field number for the "buffer_assignment" field.</summary> | |||
| public const int BufferAssignmentFieldNumber = 3; | |||
| private global::Xla.BufferAssignmentProto bufferAssignment_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Xla.BufferAssignmentProto BufferAssignment { | |||
| get { return bufferAssignment_; } | |||
| set { | |||
| bufferAssignment_ = value; | |||
| } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as XlaRuntimeCpuExecutableProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(XlaRuntimeCpuExecutableProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| } | |||
| if (ReferenceEquals(other, this)) { | |||
| return true; | |||
| } | |||
| if (!object.Equals(XlaRuntimeExecutable, other.XlaRuntimeExecutable)) return false; | |||
| if (!object.Equals(XlaFrameworkMapping, other.XlaFrameworkMapping)) return false; | |||
| if (!object.Equals(BufferAssignment, other.BufferAssignment)) 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 (xlaRuntimeExecutable_ != null) hash ^= XlaRuntimeExecutable.GetHashCode(); | |||
| if (xlaFrameworkMapping_ != null) hash ^= XlaFrameworkMapping.GetHashCode(); | |||
| if (bufferAssignment_ != null) hash ^= BufferAssignment.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 (xlaRuntimeExecutable_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(XlaRuntimeExecutable); | |||
| } | |||
| if (xlaFrameworkMapping_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(XlaFrameworkMapping); | |||
| } | |||
| if (bufferAssignment_ != null) { | |||
| output.WriteRawTag(26); | |||
| output.WriteMessage(BufferAssignment); | |||
| } | |||
| 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 (xlaRuntimeExecutable_ != null) { | |||
| output.WriteRawTag(10); | |||
| output.WriteMessage(XlaRuntimeExecutable); | |||
| } | |||
| if (xlaFrameworkMapping_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(XlaFrameworkMapping); | |||
| } | |||
| if (bufferAssignment_ != null) { | |||
| output.WriteRawTag(26); | |||
| output.WriteMessage(BufferAssignment); | |||
| } | |||
| 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 (xlaRuntimeExecutable_ != null) { | |||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(XlaRuntimeExecutable); | |||
| } | |||
| if (xlaFrameworkMapping_ != null) { | |||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(XlaFrameworkMapping); | |||
| } | |||
| if (bufferAssignment_ != null) { | |||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(BufferAssignment); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| return size; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(XlaRuntimeCpuExecutableProto other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| if (other.xlaRuntimeExecutable_ != null) { | |||
| if (xlaRuntimeExecutable_ == null) { | |||
| XlaRuntimeExecutable = new global::Xla.XlaRuntimeExecutableProto(); | |||
| } | |||
| XlaRuntimeExecutable.MergeFrom(other.XlaRuntimeExecutable); | |||
| } | |||
| if (other.xlaFrameworkMapping_ != null) { | |||
| if (xlaFrameworkMapping_ == null) { | |||
| XlaFrameworkMapping = new global::Xla.Cpu.XlaFrameworkMappingProto(); | |||
| } | |||
| XlaFrameworkMapping.MergeFrom(other.XlaFrameworkMapping); | |||
| } | |||
| if (other.bufferAssignment_ != null) { | |||
| if (bufferAssignment_ == null) { | |||
| BufferAssignment = new global::Xla.BufferAssignmentProto(); | |||
| } | |||
| BufferAssignment.MergeFrom(other.BufferAssignment); | |||
| } | |||
| _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: { | |||
| if (xlaRuntimeExecutable_ == null) { | |||
| XlaRuntimeExecutable = new global::Xla.XlaRuntimeExecutableProto(); | |||
| } | |||
| input.ReadMessage(XlaRuntimeExecutable); | |||
| break; | |||
| } | |||
| case 18: { | |||
| if (xlaFrameworkMapping_ == null) { | |||
| XlaFrameworkMapping = new global::Xla.Cpu.XlaFrameworkMappingProto(); | |||
| } | |||
| input.ReadMessage(XlaFrameworkMapping); | |||
| break; | |||
| } | |||
| case 26: { | |||
| if (bufferAssignment_ == null) { | |||
| BufferAssignment = new global::Xla.BufferAssignmentProto(); | |||
| } | |||
| input.ReadMessage(BufferAssignment); | |||
| 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: { | |||
| if (xlaRuntimeExecutable_ == null) { | |||
| XlaRuntimeExecutable = new global::Xla.XlaRuntimeExecutableProto(); | |||
| } | |||
| input.ReadMessage(XlaRuntimeExecutable); | |||
| break; | |||
| } | |||
| case 18: { | |||
| if (xlaFrameworkMapping_ == null) { | |||
| XlaFrameworkMapping = new global::Xla.Cpu.XlaFrameworkMappingProto(); | |||
| } | |||
| input.ReadMessage(XlaFrameworkMapping); | |||
| break; | |||
| } | |||
| case 26: { | |||
| if (bufferAssignment_ == null) { | |||
| BufferAssignment = new global::Xla.BufferAssignmentProto(); | |||
| } | |||
| input.ReadMessage(BufferAssignment); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| #endregion | |||
| } | |||
| #endregion Designer generated code | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/full_type.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -25,26 +25,30 @@ namespace Tensorflow { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "Cil0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Z1bGxfdHlwZS5wcm90bxIK", | |||
| "dGVuc29yZmxvdyJyCgtGdWxsVHlwZURlZhInCgd0eXBlX2lkGAEgASgOMhYu", | |||
| "dGVuc29yZmxvdyJ/CgtGdWxsVHlwZURlZhInCgd0eXBlX2lkGAEgASgOMhYu", | |||
| "dGVuc29yZmxvdy5GdWxsVHlwZUlkEiUKBGFyZ3MYAiADKAsyFy50ZW5zb3Jm", | |||
| "bG93LkZ1bGxUeXBlRGVmEgsKAXMYAyABKAlIAEIGCgRhdHRyKqwDCgpGdWxs", | |||
| "VHlwZUlkEg0KCVRGVF9VTlNFVBAAEgsKB1RGVF9WQVIQARILCgdURlRfQU5Z", | |||
| "EAISDwoLVEZUX1BST0RVQ1QQAxIQCgxURlRfQ0FMTEFCTEUQZBIPCgpURlRf", | |||
| "VEVOU09SEOgHEg4KCVRGVF9BUlJBWRDpBxIRCgxURlRfT1BUSU9OQUwQ6gcS", | |||
| "EAoLVEZUX0RBVEFTRVQQ9k4SDQoIVEZUX0JPT0wQyAESDgoJVEZUX1VJTlQ4", | |||
| "EMkBEg8KClRGVF9VSU5UMTYQygESDwoKVEZUX1VJTlQzMhDLARIPCgpURlRf", | |||
| "VUlOVDY0EMwBEg0KCFRGVF9JTlQ4EM0BEg4KCVRGVF9JTlQxNhDOARIOCglU", | |||
| "RlRfSU5UMzIQzwESDgoJVEZUX0lOVDY0ENABEg0KCFRGVF9IQUxGENEBEg4K", | |||
| "CVRGVF9GTE9BVBDSARIPCgpURlRfRE9VQkxFENMBEhEKDFRGVF9CRkxPQVQx", | |||
| "NhDXARISCg1URlRfQ09NUExFWDY0ENQBEhMKDlRGVF9DT01QTEVYMTI4ENUB", | |||
| "Eg8KClRGVF9TVFJJTkcQ1gFCfQoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3Jr", | |||
| "Qg5GdWxsVHlwZVByb3Rvc1ABWkxnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVu", | |||
| "c29yZmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL3R5cGVzX2dv", | |||
| "X3Byb3Rv+AEBYgZwcm90bzM=")); | |||
| "bG93LkZ1bGxUeXBlRGVmEgsKAXMYAyABKAlIABILCgFpGAQgASgDSABCBgoE", | |||
| "YXR0cirDBAoKRnVsbFR5cGVJZBINCglURlRfVU5TRVQQABILCgdURlRfVkFS", | |||
| "EAESCwoHVEZUX0FOWRACEg8KC1RGVF9QUk9EVUNUEAMSDQoJVEZUX05BTUVE", | |||
| "EAQSEAoMVEZUX0ZPUl9FQUNIEBQSEAoMVEZUX0NBTExBQkxFEGQSDwoKVEZU", | |||
| "X1RFTlNPUhDoBxIOCglURlRfQVJSQVkQ6QcSEQoMVEZUX09QVElPTkFMEOoH", | |||
| "EhAKC1RGVF9MSVRFUkFMEOsHEhAKC1RGVF9FTkNPREVEEOwHEg0KCFRGVF9C", | |||
| "T09MEMgBEg4KCVRGVF9VSU5UOBDJARIPCgpURlRfVUlOVDE2EMoBEg8KClRG", | |||
| "VF9VSU5UMzIQywESDwoKVEZUX1VJTlQ2NBDMARINCghURlRfSU5UOBDNARIO", | |||
| "CglURlRfSU5UMTYQzgESDgoJVEZUX0lOVDMyEM8BEg4KCVRGVF9JTlQ2NBDQ", | |||
| "ARINCghURlRfSEFMRhDRARIOCglURlRfRkxPQVQQ0gESDwoKVEZUX0RPVUJM", | |||
| "RRDTARIRCgxURlRfQkZMT0FUMTYQ1wESEgoNVEZUX0NPTVBMRVg2NBDUARIT", | |||
| "Cg5URlRfQ09NUExFWDEyOBDVARIPCgpURlRfU1RSSU5HENYBEhAKC1RGVF9E", | |||
| "QVRBU0VUEPZOEg8KClRGVF9SQUdHRUQQ904SEQoMVEZUX0lURVJBVE9SEPhO", | |||
| "EhMKDlRGVF9NVVRFWF9MT0NLENpPEhcKElRGVF9MRUdBQ1lfVkFSSUFOVBDb", | |||
| "T0KBAQoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3JrQg5GdWxsVHlwZVByb3Rv", | |||
| "c1ABWlBnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3Jm", | |||
| "bG93L2dvL2NvcmUvZnJhbWV3b3JrL2Z1bGxfdHlwZV9nb19wcm90b/gBAWIG", | |||
| "cHJvdG8z")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.FullTypeId), }, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.FullTypeDef), global::Tensorflow.FullTypeDef.Parser, new[]{ "TypeId", "Args", "S" }, new[]{ "Attr" }, null, null, null) | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.FullTypeDef), global::Tensorflow.FullTypeDef.Parser, new[]{ "TypeId", "Args", "S", "I" }, new[]{ "Attr" }, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| @@ -52,6 +56,7 @@ namespace Tensorflow { | |||
| } | |||
| #region Enums | |||
| /// <summary> | |||
| /// LINT.IfChange | |||
| /// Experimental. Represents the complete type information of a TensorFlow value. | |||
| /// </summary> | |||
| public enum FullTypeId { | |||
| @@ -69,7 +74,7 @@ namespace Tensorflow { | |||
| /// TFT_TENSOR[TFT_VAR["T"]], TFT_TENSOR[TFT_VAR["T"]] are two tensors of | |||
| /// identical element types. | |||
| /// TFT_TENSOR[TFT_VAR["P"]], TFT_TENSOR[TFT_VAR["Q"]] are two tensors of | |||
| /// potentially different element types. | |||
| /// independent element types. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_VAR")] TftVar = 1, | |||
| /// <summary> | |||
| @@ -90,14 +95,55 @@ namespace Tensorflow { | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_PRODUCT")] TftProduct = 3, | |||
| /// <summary> | |||
| /// Represents a named field, with the name stored in the attribute. | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_NAMED[<type>]{<name>} | |||
| /// * <type> is the type of the field | |||
| /// * <name> is the field name, as string (thpugh can theoretically be an int | |||
| /// as well) | |||
| /// | |||
| /// Example: | |||
| /// TFT_RECORD[ | |||
| /// TFT_NAMED[TFT_TENSOR[TFT_INT32]]{'foo'}, | |||
| /// TFT_NAMED[TFT_TENSOR[TFT_FLOAT32]]{'bar'}, | |||
| /// ] | |||
| /// is a structure with two fields, an int tensor "foo" and a float tensor | |||
| /// "bar". | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_NAMED")] TftNamed = 4, | |||
| /// <summary> | |||
| /// Template definition. Expands the variables by repeating a template as | |||
| /// arguments of container. | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_FOR_EACH[<container_type>, <template>, <expansions>] | |||
| /// * <container_type> is the type of the container that the template will be | |||
| /// expanded into | |||
| /// * <template> is any type definition that potentially contains type | |||
| /// variables | |||
| /// * <expansions> is a TFT_VAR and may include more types in the future | |||
| /// | |||
| /// Example: | |||
| /// TFT_FOR_EACH[ | |||
| /// TFT_PRODUCT, | |||
| /// TFT_TENSOR[TFT_VAR["t"]], | |||
| /// TFT_VAR["t"] | |||
| /// ] | |||
| /// will substitute a T = TFT_INT32 to TFT_PRODUCT[TFT_TENSOR[TFT_INT32]] | |||
| /// and a T = (TFT_INT32, TFT_INT64) to | |||
| /// TFT_PRODUCT[TFT_TENSOR[TFT_INT32], TFT_TENSOR[TFT_INT64]]. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_FOR_EACH")] TftForEach = 20, | |||
| /// <summary> | |||
| /// Callable types describe functions and ops. | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_CALLABLE[<arg type>, <return type>] | |||
| /// * <arg_type> is the type of the arguments; TFT_PRODUCT represents | |||
| /// * <arg type> is the type of the arguments; TFT_PRODUCT represents | |||
| /// multiple | |||
| /// arguments. | |||
| /// * <return_type> is the return type; TFT_PRODUCT represents multiple | |||
| /// * <return type> is the return type; TFT_PRODUCT represents multiple | |||
| /// return values (that means that callables returning multiple things | |||
| /// don't necessarily return a single tuple). | |||
| /// | |||
| @@ -115,9 +161,9 @@ namespace Tensorflow { | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_TENSOR[<element type>, <shape type>] | |||
| /// * <element_type> is currently limited to one of the element types | |||
| /// * <element type> is currently limited to one of the element types | |||
| /// defined below. | |||
| /// * <shape_type> is not yet defined, and may only be TFT_UNKNOWN for now. | |||
| /// * <shape type> is not yet defined, and may only be TFT_UNKNOWN for now. | |||
| /// | |||
| /// A TFT_SHAPE type will be defined in the future. | |||
| /// | |||
| @@ -140,7 +186,7 @@ namespace Tensorflow { | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_ARRAY[<element type>] | |||
| /// * <element_type> may be any concrete type. | |||
| /// * <element type> may be any concrete type. | |||
| /// | |||
| /// Examples: | |||
| /// TFT_ARRAY[TFT_TENSOR[TFT_INT32]] is a TensorArray holding int32 Tensors | |||
| @@ -159,7 +205,7 @@ namespace Tensorflow { | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_OPTIONAL[<element type>] | |||
| /// * <element_type> may be any concrete type. | |||
| /// * <element type> may be any concrete type. | |||
| /// | |||
| /// Examples: | |||
| /// TFT_OPTIONAL[TFT_TENSOR[TFT_INT32]] is an Optional holding an int32 | |||
| @@ -167,28 +213,31 @@ namespace Tensorflow { | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_OPTIONAL")] TftOptional = 1002, | |||
| /// <summary> | |||
| /// Datasets created by tf.data ops and APIs. Datasets have generator/iterable | |||
| /// semantics, that is, one can construct an iterator from them. Like | |||
| /// Array, they are considered to return elements that can be described | |||
| /// by a single type. Unlike Array, they do not support random access or | |||
| /// mutation, and can potentially produce an infinite number of elements. | |||
| /// A datasets can produce logical structures (e.g. multiple elements). This | |||
| /// is expressed using TFT_PRODUCT. | |||
| /// Literal types describe compile-time constant values. | |||
| /// Literal types may also participate in dependent types. | |||
| /// | |||
| /// Parametrization: TFT_ARRAY[<element type>]. | |||
| /// <element_type> may be a concrete type or a type symbol. It represents the | |||
| /// data type of the elements produced by the dataset. | |||
| /// Parametrization: | |||
| /// TFT_LITERAL[<value type>]{<value>} | |||
| /// * <value type> may be any concrete type compatible that can hold <value> | |||
| /// * <value> is the type's attribute, and holds the actual literal value | |||
| /// | |||
| /// Examples: | |||
| /// TFT_DATSET[TFT_TENSOR[TFT_INT32]] is a Dataset producing single int32 | |||
| /// Tensors of unknown shape. | |||
| /// TFT_DATSET[TFT_PRODUCT[TFT_TENSOR[TFT_INT32], TFT_TENSOR[TFT_FLOAT32]] is | |||
| /// a | |||
| /// Dataset producing pairs of Tensors, one integer and one float. | |||
| /// Note: The high ID number is to prepare for the eventuality that Datasets | |||
| /// will be supported by user types in the future. | |||
| /// TFT_LITERAL[TFT_INT32]{1} is the compile-time constant 1. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_DATASET")] TftDataset = 10102, | |||
| [pbr::OriginalName("TFT_LITERAL")] TftLiteral = 1003, | |||
| /// <summary> | |||
| /// Encoding types describe a value of a certain type, encoded as a different | |||
| /// type. | |||
| /// | |||
| /// Parametrization: | |||
| /// TFT_ENCODED[<encoded type>, <encoding type>] | |||
| /// * <encoded type> may be any type | |||
| /// * <encoding type> may be any type | |||
| /// | |||
| /// Examples: | |||
| /// TFT_ENCODING[TFT_INT32, TFT_STRING] is an integer encoded as string. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_ENCODED")] TftEncoded = 1004, | |||
| /// <summary> | |||
| /// The bool element type. | |||
| /// TODO(mdan): Quantized types, legacy representations (e.g. ref) | |||
| @@ -222,6 +271,62 @@ namespace Tensorflow { | |||
| /// The string element type. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_STRING")] TftString = 214, | |||
| /// <summary> | |||
| /// Datasets created by tf.data ops and APIs. Datasets have generator/iterable | |||
| /// semantics, that is, one can construct an iterator from them. Like | |||
| /// Array, they are considered to return elements that can be described | |||
| /// by a single type. Unlike Array, they do not support random access or | |||
| /// mutation, and can potentially produce an infinite number of elements. | |||
| /// A datasets can produce logical structures (e.g. multiple elements). This | |||
| /// is expressed using TFT_PRODUCT. | |||
| /// | |||
| /// Parametrization: TFT_DATASET[<element type>]. | |||
| /// * <element type> may be a concrete type or a type symbol. It represents | |||
| /// the data type of the elements produced by the dataset. | |||
| /// | |||
| /// Examples: | |||
| /// TFT_DATSET[TFT_TENSOR[TFT_INT32]] is a Dataset producing single int32 | |||
| /// Tensors of unknown shape. | |||
| /// TFT_DATSET[TFT_PRODUCT[TFT_TENSOR[TFT_INT32], TFT_TENSOR[TFT_FLOAT32]] is | |||
| /// a Dataset producing pairs of Tensors, one integer and one float. | |||
| /// Note: The high ID number is to prepare for the eventuality that Datasets | |||
| /// will be supported by user types in the future. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_DATASET")] TftDataset = 10102, | |||
| /// <summary> | |||
| /// A ragged tensor created by tf.ragged ops and APIs. | |||
| /// | |||
| /// Parametrization: TFT_RAGGED[<element_type>]. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_RAGGED")] TftRagged = 10103, | |||
| /// <summary> | |||
| /// Iterators created by tf.data ops and APIs. Very similar to Datasets, except | |||
| /// they are mutable. | |||
| /// | |||
| /// Parametrization: TFT_ITERATOR[<element type>]. | |||
| /// * <element type> may be a concrete type or a type symbol. It represents | |||
| /// the data type of the elements produced by the dataset. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_ITERATOR")] TftIterator = 10104, | |||
| /// <summary> | |||
| /// A mutex lock tensor, produced by tf.raw_ops.MutexLock. | |||
| /// Unlike strict execution models, where ownership of a lock is denoted by | |||
| /// "running after the lock has been acquired", in non-strict mode, lock | |||
| /// ownership is in the true sense: "the op argument representing the lock is | |||
| /// available". | |||
| /// Mutex locks are the dynamic counterpart of control dependencies. | |||
| /// TODO(mdan): Properly document this thing. | |||
| /// | |||
| /// Parametrization: TFT_MUTEX_LOCK[]. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_MUTEX_LOCK")] TftMutexLock = 10202, | |||
| /// <summary> | |||
| /// The equivalent of a Tensor with DT_VARIANT dtype, kept here to simplify | |||
| /// translation. This type should not normally appear after type inference. | |||
| /// Note that LEGACY_VARIANT != ANY: TENSOR[INT32] is a subtype of ANY, but is | |||
| /// not a subtype of LEGACY_VARIANT. | |||
| /// </summary> | |||
| [pbr::OriginalName("TFT_LEGACY_VARIANT")] TftLegacyVariant = 10203, | |||
| } | |||
| #endregion | |||
| @@ -233,23 +338,31 @@ namespace Tensorflow { | |||
| /// particular the encoding imposes no restrictions on what the parameters of any | |||
| /// type should be, which in particular needs to be true for type symbols. | |||
| /// </summary> | |||
| public sealed partial class FullTypeDef : pb::IMessage<FullTypeDef> { | |||
| public sealed partial class FullTypeDef : pb::IMessage<FullTypeDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<FullTypeDef> _parser = new pb::MessageParser<FullTypeDef>(() => new FullTypeDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<FullTypeDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.FullTypeReflection.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 FullTypeDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -257,6 +370,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public FullTypeDef(FullTypeDef other) : this() { | |||
| typeId_ = other.typeId_; | |||
| args_ = other.args_.Clone(); | |||
| @@ -264,12 +378,16 @@ namespace Tensorflow { | |||
| case AttrOneofCase.S: | |||
| S = other.S; | |||
| break; | |||
| case AttrOneofCase.I: | |||
| I = other.I; | |||
| break; | |||
| } | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public FullTypeDef Clone() { | |||
| return new FullTypeDef(this); | |||
| } | |||
| @@ -283,6 +401,7 @@ namespace Tensorflow { | |||
| /// symbol (Any, Union). See FullTypeId for details. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.FullTypeId TypeId { | |||
| get { return typeId_; } | |||
| set { | |||
| @@ -296,6 +415,7 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(18, global::Tensorflow.FullTypeDef.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.FullTypeDef> args_ = new pbc::RepeatedField<global::Tensorflow.FullTypeDef>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.FullTypeDef> Args { | |||
| get { return args_; } | |||
| } | |||
| @@ -303,6 +423,7 @@ namespace Tensorflow { | |||
| /// <summary>Field number for the "s" field.</summary> | |||
| public const int SFieldNumber = 3; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string S { | |||
| get { return attrCase_ == AttrOneofCase.S ? (string) attr_ : ""; } | |||
| set { | |||
| @@ -311,30 +432,50 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| /// <summary>Field number for the "i" field.</summary> | |||
| public const int IFieldNumber = 4; | |||
| /// <summary> | |||
| /// TODO(mdan): list/tensor, map? Need to reconcile with TFT_RECORD, etc. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long I { | |||
| get { return attrCase_ == AttrOneofCase.I ? (long) attr_ : 0L; } | |||
| set { | |||
| attr_ = value; | |||
| attrCase_ = AttrOneofCase.I; | |||
| } | |||
| } | |||
| private object attr_; | |||
| /// <summary>Enum of possible cases for the "attr" oneof.</summary> | |||
| public enum AttrOneofCase { | |||
| None = 0, | |||
| S = 3, | |||
| I = 4, | |||
| } | |||
| private AttrOneofCase attrCase_ = AttrOneofCase.None; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AttrOneofCase AttrCase { | |||
| get { return attrCase_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearAttr() { | |||
| attrCase_ = AttrOneofCase.None; | |||
| attr_ = null; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as FullTypeDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(FullTypeDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -345,16 +486,19 @@ namespace Tensorflow { | |||
| if (TypeId != other.TypeId) return false; | |||
| if(!args_.Equals(other.args_)) return false; | |||
| if (S != other.S) return false; | |||
| if (I != other.I) return false; | |||
| if (AttrCase != other.AttrCase) 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 (TypeId != global::Tensorflow.FullTypeId.TftUnset) hash ^= TypeId.GetHashCode(); | |||
| hash ^= args_.GetHashCode(); | |||
| if (attrCase_ == AttrOneofCase.S) hash ^= S.GetHashCode(); | |||
| if (attrCase_ == AttrOneofCase.I) hash ^= I.GetHashCode(); | |||
| hash ^= (int) attrCase_; | |||
| if (_unknownFields != null) { | |||
| hash ^= _unknownFields.GetHashCode(); | |||
| @@ -363,12 +507,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (TypeId != global::Tensorflow.FullTypeId.TftUnset) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) TypeId); | |||
| @@ -378,12 +527,41 @@ namespace Tensorflow { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(S); | |||
| } | |||
| if (attrCase_ == AttrOneofCase.I) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(I); | |||
| } | |||
| 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 (TypeId != global::Tensorflow.FullTypeId.TftUnset) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) TypeId); | |||
| } | |||
| args_.WriteTo(ref output, _repeated_args_codec); | |||
| if (attrCase_ == AttrOneofCase.S) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(S); | |||
| } | |||
| if (attrCase_ == AttrOneofCase.I) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt64(I); | |||
| } | |||
| 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 (TypeId != global::Tensorflow.FullTypeId.TftUnset) { | |||
| @@ -393,6 +571,9 @@ namespace Tensorflow { | |||
| if (attrCase_ == AttrOneofCase.S) { | |||
| size += 1 + pb::CodedOutputStream.ComputeStringSize(S); | |||
| } | |||
| if (attrCase_ == AttrOneofCase.I) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(I); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| @@ -400,6 +581,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(FullTypeDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -412,13 +594,20 @@ namespace Tensorflow { | |||
| case AttrOneofCase.S: | |||
| S = other.S; | |||
| break; | |||
| case AttrOneofCase.I: | |||
| I = other.I; | |||
| break; | |||
| } | |||
| _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) { | |||
| @@ -437,9 +626,45 @@ namespace Tensorflow { | |||
| S = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| I = input.ReadInt64(); | |||
| 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: { | |||
| TypeId = (global::Tensorflow.FullTypeId) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| args_.AddEntriesFrom(ref input, _repeated_args_codec); | |||
| break; | |||
| } | |||
| case 26: { | |||
| S = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| I = input.ReadInt64(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -1,7 +1,7 @@ | |||
| @ECHO OFF | |||
| set SRC_DIR=D:/SciSharp/tensorflow-google | |||
| set DST_DIR=D:/SciSharp/TensorFlow.NET/src/TensorFlowNET.Core/Protobuf | |||
| set SRC_DIR=D:/development/tf.net/tensorflow-2.11.0 | |||
| set DST_DIR=D:/development/tf.net/gen_proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/framework/resource_handle.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/framework/tensor_shape.proto | |||
| @@ -30,6 +30,10 @@ protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/saver.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/saved_object_graph.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/saved_model.proto | |||
| ECHO Download `any.proto` from https://github.com/protocolbuffers/protobuf/tree/master/src/google/protobuf | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/coordination_service.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/coordination_config.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/service_config.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/data_service.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/meta_graph.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/cluster.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/config.proto | |||
| @@ -41,6 +45,14 @@ protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/struct.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/protobuf/verifier_config.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/util/event.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/core/util/memmapped_file_system.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/tsl/protobuf/histogram.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/xla.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/xla_data.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/service/hlo.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/pjrt/distributed/protocol.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/service/gpu/executable.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/service/cpu/executable.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/compiler/xla/service/cpu/xla_framework.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/python/training/checkpoint_state.proto | |||
| protoc -I=%SRC_DIR% --csharp_out=%DST_DIR% tensorflow/python/framework/cpp_shape_inference.proto | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/graph.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -48,23 +48,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Represents the graph of operations | |||
| /// </summary> | |||
| public sealed partial class GraphDef : pb::IMessage<GraphDef> { | |||
| public sealed partial class GraphDef : pb::IMessage<GraphDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<GraphDef> _parser = new pb::MessageParser<GraphDef>(() => new GraphDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<GraphDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.GraphReflection.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 GraphDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -72,6 +80,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public GraphDef(GraphDef other) : this() { | |||
| node_ = other.node_.Clone(); | |||
| versions_ = other.versions_ != null ? other.versions_.Clone() : null; | |||
| @@ -81,6 +90,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public GraphDef Clone() { | |||
| return new GraphDef(this); | |||
| } | |||
| @@ -91,6 +101,7 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(10, global::Tensorflow.NodeDef.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.NodeDef> node_ = new pbc::RepeatedField<global::Tensorflow.NodeDef>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.NodeDef> Node { | |||
| get { return node_; } | |||
| } | |||
| @@ -104,6 +115,7 @@ namespace Tensorflow { | |||
| /// each release of TensorFlow will support a range of GraphDef versions. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.VersionDef Versions { | |||
| get { return versions_; } | |||
| set { | |||
| @@ -121,6 +133,7 @@ namespace Tensorflow { | |||
| /// </summary> | |||
| [global::System.ObsoleteAttribute] | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int Version { | |||
| get { return version_; } | |||
| set { | |||
| @@ -159,6 +172,7 @@ namespace Tensorflow { | |||
| /// function are ready. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.FunctionDefLibrary Library { | |||
| get { return library_; } | |||
| set { | |||
| @@ -167,11 +181,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as GraphDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(GraphDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -187,6 +203,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= node_.GetHashCode(); | |||
| @@ -200,12 +217,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| if (library_ != null) { | |||
| output.WriteRawTag(18); | |||
| @@ -222,9 +244,34 @@ namespace Tensorflow { | |||
| 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); | |||
| if (library_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(Library); | |||
| } | |||
| if (Version != 0) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt32(Version); | |||
| } | |||
| if (versions_ != null) { | |||
| output.WriteRawTag(34); | |||
| output.WriteMessage(Versions); | |||
| } | |||
| 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); | |||
| @@ -244,6 +291,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(GraphDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -268,7 +316,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -299,7 +351,45 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| if (library_ == null) { | |||
| Library = new global::Tensorflow.FunctionDefLibrary(); | |||
| } | |||
| input.ReadMessage(Library); | |||
| break; | |||
| } | |||
| case 24: { | |||
| Version = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 34: { | |||
| if (versions_ == null) { | |||
| Versions = new global::Tensorflow.VersionDef(); | |||
| } | |||
| input.ReadMessage(Versions); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -0,0 +1,452 @@ | |||
| // <auto-generated> | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/tsl/protobuf/histogram.proto | |||
| // </auto-generated> | |||
| #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 { | |||
| /// <summary>Holder for reflection information generated from tensorflow/tsl/protobuf/histogram.proto</summary> | |||
| public static partial class HistogramReflection { | |||
| #region Descriptor | |||
| /// <summary>File descriptor for tensorflow/tsl/protobuf/histogram.proto</summary> | |||
| public static pbr::FileDescriptor Descriptor { | |||
| get { return descriptor; } | |||
| } | |||
| private static pbr::FileDescriptor descriptor; | |||
| static HistogramReflection() { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "Cid0ZW5zb3JmbG93L3RzbC9wcm90b2J1Zi9oaXN0b2dyYW0ucHJvdG8SCnRl", | |||
| "bnNvcmZsb3cihwEKDkhpc3RvZ3JhbVByb3RvEgsKA21pbhgBIAEoARILCgNt", | |||
| "YXgYAiABKAESCwoDbnVtGAMgASgBEgsKA3N1bRgEIAEoARITCgtzdW1fc3F1", | |||
| "YXJlcxgFIAEoARIYCgxidWNrZXRfbGltaXQYBiADKAFCAhABEhIKBmJ1Y2tl", | |||
| "dBgHIAMoAUICEAFCXAoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3JrUAFaO2dp", | |||
| "dGh1Yi5jb20vZ29vZ2xlL3RzbC90c2wvZ28vY29yZS9wcm90b2J1Zi9zdW1t", | |||
| "YXJ5X2dvX3Byb3Rv+AEBYgZwcm90bzM=")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.HistogramProto), global::Tensorflow.HistogramProto.Parser, new[]{ "Min", "Max", "Num", "Sum", "SumSquares", "BucketLimit", "Bucket" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| /// <summary> | |||
| /// Serialization format for histogram module in | |||
| /// tsl/lib/histogram/histogram.h | |||
| /// </summary> | |||
| public sealed partial class HistogramProto : pb::IMessage<HistogramProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<HistogramProto> _parser = new pb::MessageParser<HistogramProto>(() => new HistogramProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<HistogramProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.HistogramReflection.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 HistogramProto() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<double> Bucket { | |||
| get { return bucket_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as HistogramProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [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 (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); | |||
| } | |||
| #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 (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(ref output, _repeated_bucketLimit_codec); | |||
| bucket_.WriteTo(ref output, _repeated_bucket_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; | |||
| 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] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| 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] | |||
| [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 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; | |||
| } | |||
| } | |||
| } | |||
| #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 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(ref input, _repeated_bucketLimit_codec); | |||
| break; | |||
| } | |||
| case 58: | |||
| case 57: { | |||
| bucket_.AddEntriesFrom(ref input, _repeated_bucket_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| #endregion | |||
| } | |||
| #endregion Designer generated code | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/kernel_def.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -47,23 +47,31 @@ namespace Tensorflow { | |||
| } | |||
| #region Messages | |||
| public sealed partial class KernelDef : pb::IMessage<KernelDef> { | |||
| public sealed partial class KernelDef : pb::IMessage<KernelDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<KernelDef> _parser = new pb::MessageParser<KernelDef>(() => new KernelDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<KernelDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.KernelDefReflection.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 KernelDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -71,6 +79,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public KernelDef(KernelDef other) : this() { | |||
| op_ = other.op_; | |||
| deviceType_ = other.deviceType_; | |||
| @@ -82,6 +91,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public KernelDef Clone() { | |||
| return new KernelDef(this); | |||
| } | |||
| @@ -93,6 +103,7 @@ namespace Tensorflow { | |||
| /// Must match the name of an Op. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Op { | |||
| get { return op_; } | |||
| set { | |||
| @@ -107,6 +118,7 @@ namespace Tensorflow { | |||
| /// Type of device this kernel runs on. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string DeviceType { | |||
| get { return deviceType_; } | |||
| set { | |||
| @@ -120,6 +132,7 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(26, global::Tensorflow.KernelDef.Types.AttrConstraint.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.KernelDef.Types.AttrConstraint> constraint_ = new pbc::RepeatedField<global::Tensorflow.KernelDef.Types.AttrConstraint>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.KernelDef.Types.AttrConstraint> Constraint { | |||
| get { return constraint_; } | |||
| } | |||
| @@ -134,6 +147,7 @@ namespace Tensorflow { | |||
| /// instead of device memory. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> HostMemoryArg { | |||
| get { return hostMemoryArg_; } | |||
| } | |||
| @@ -147,6 +161,7 @@ namespace Tensorflow { | |||
| /// value matching this. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Label { | |||
| get { return label_; } | |||
| set { | |||
| @@ -163,6 +178,7 @@ namespace Tensorflow { | |||
| /// this is not set), we prefer GPU kernels over CPU. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int Priority { | |||
| get { return priority_; } | |||
| set { | |||
| @@ -171,11 +187,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as KernelDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(KernelDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -193,6 +211,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Op.Length != 0) hash ^= Op.GetHashCode(); | |||
| @@ -208,12 +227,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Op.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Op); | |||
| @@ -235,9 +259,39 @@ namespace Tensorflow { | |||
| 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 (Op.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Op); | |||
| } | |||
| if (DeviceType.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(DeviceType); | |||
| } | |||
| constraint_.WriteTo(ref output, _repeated_constraint_codec); | |||
| hostMemoryArg_.WriteTo(ref output, _repeated_hostMemoryArg_codec); | |||
| if (Label.Length != 0) { | |||
| output.WriteRawTag(42); | |||
| output.WriteString(Label); | |||
| } | |||
| if (Priority != 0) { | |||
| output.WriteRawTag(48); | |||
| output.WriteInt32(Priority); | |||
| } | |||
| 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 (Op.Length != 0) { | |||
| @@ -261,6 +315,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(KernelDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -283,7 +338,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -316,29 +375,78 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Op = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| DeviceType = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| constraint_.AddEntriesFrom(ref input, _repeated_constraint_codec); | |||
| break; | |||
| } | |||
| case 34: { | |||
| hostMemoryArg_.AddEntriesFrom(ref input, _repeated_hostMemoryArg_codec); | |||
| break; | |||
| } | |||
| case 42: { | |||
| Label = input.ReadString(); | |||
| break; | |||
| } | |||
| case 48: { | |||
| Priority = input.ReadInt32(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the KernelDef message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| public sealed partial class AttrConstraint : pb::IMessage<AttrConstraint> { | |||
| public sealed partial class AttrConstraint : pb::IMessage<AttrConstraint> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<AttrConstraint> _parser = new pb::MessageParser<AttrConstraint>(() => new AttrConstraint()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<AttrConstraint> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.KernelDef.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 AttrConstraint() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -346,6 +454,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AttrConstraint(AttrConstraint other) : this() { | |||
| name_ = other.name_; | |||
| allowedValues_ = other.allowedValues_ != null ? other.allowedValues_.Clone() : null; | |||
| @@ -353,6 +462,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public AttrConstraint Clone() { | |||
| return new AttrConstraint(this); | |||
| } | |||
| @@ -364,6 +474,7 @@ namespace Tensorflow { | |||
| /// Name of an attr from the Op. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -379,6 +490,7 @@ namespace Tensorflow { | |||
| /// Like OpDef.AttrDef.allowed_values, except for kernels instead of Ops. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.AttrValue AllowedValues { | |||
| get { return allowedValues_; } | |||
| set { | |||
| @@ -387,11 +499,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as AttrConstraint); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(AttrConstraint other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -405,6 +519,7 @@ namespace Tensorflow { | |||
| } | |||
| [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(); | |||
| @@ -416,12 +531,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -433,9 +553,29 @@ namespace Tensorflow { | |||
| 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 (allowedValues_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(AllowedValues); | |||
| } | |||
| 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) { | |||
| @@ -451,6 +591,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(AttrConstraint other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -468,7 +609,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -488,7 +633,34 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| if (allowedValues_ == null) { | |||
| AllowedValues = new global::Tensorflow.AttrValue(); | |||
| } | |||
| input.ReadMessage(AllowedValues); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -500,23 +672,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// A collection of KernelDefs | |||
| /// </summary> | |||
| public sealed partial class KernelList : pb::IMessage<KernelList> { | |||
| public sealed partial class KernelList : pb::IMessage<KernelList> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<KernelList> _parser = new pb::MessageParser<KernelList>(() => new KernelList()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<KernelList> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.KernelDefReflection.Descriptor.MessageTypes[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 KernelList() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -524,12 +704,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public KernelList(KernelList other) : this() { | |||
| kernel_ = other.kernel_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public KernelList Clone() { | |||
| return new KernelList(this); | |||
| } | |||
| @@ -540,16 +722,19 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(10, global::Tensorflow.KernelDef.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.KernelDef> kernel_ = new pbc::RepeatedField<global::Tensorflow.KernelDef>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.KernelDef> Kernel { | |||
| get { return kernel_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as KernelList); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(KernelList other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -562,6 +747,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= kernel_.GetHashCode(); | |||
| @@ -572,19 +758,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| kernel_.WriteTo(output, _repeated_kernel_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) { | |||
| kernel_.WriteTo(ref output, _repeated_kernel_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 += kernel_.CalculateSize(_repeated_kernel_codec); | |||
| @@ -595,6 +799,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(KernelList other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -604,7 +809,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -617,7 +826,27 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| kernel_.AddEntriesFrom(ref input, _repeated_kernel_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/util/memmapped_file_system.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -44,23 +44,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// A message that describes one region of memmapped file. | |||
| /// </summary> | |||
| public sealed partial class MemmappedFileSystemDirectoryElement : pb::IMessage<MemmappedFileSystemDirectoryElement> { | |||
| public sealed partial class MemmappedFileSystemDirectoryElement : pb::IMessage<MemmappedFileSystemDirectoryElement> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<MemmappedFileSystemDirectoryElement> _parser = new pb::MessageParser<MemmappedFileSystemDirectoryElement>(() => new MemmappedFileSystemDirectoryElement()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<MemmappedFileSystemDirectoryElement> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.MemmappedFileSystemReflection.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 MemmappedFileSystemDirectoryElement() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -68,6 +76,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public MemmappedFileSystemDirectoryElement(MemmappedFileSystemDirectoryElement other) : this() { | |||
| offset_ = other.offset_; | |||
| name_ = other.name_; | |||
| @@ -76,6 +85,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public MemmappedFileSystemDirectoryElement Clone() { | |||
| return new MemmappedFileSystemDirectoryElement(this); | |||
| } | |||
| @@ -84,6 +94,7 @@ namespace Tensorflow { | |||
| public const int OffsetFieldNumber = 1; | |||
| private ulong offset_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ulong Offset { | |||
| get { return offset_; } | |||
| set { | |||
| @@ -95,6 +106,7 @@ namespace Tensorflow { | |||
| public const int NameFieldNumber = 2; | |||
| private string name_ = ""; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -106,6 +118,7 @@ namespace Tensorflow { | |||
| public const int LengthFieldNumber = 3; | |||
| private ulong length_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ulong Length { | |||
| get { return length_; } | |||
| set { | |||
| @@ -114,11 +127,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as MemmappedFileSystemDirectoryElement); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(MemmappedFileSystemDirectoryElement other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -133,6 +148,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Offset != 0UL) hash ^= Offset.GetHashCode(); | |||
| @@ -145,12 +161,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Offset != 0UL) { | |||
| output.WriteRawTag(8); | |||
| output.WriteUInt64(Offset); | |||
| @@ -166,9 +187,33 @@ namespace Tensorflow { | |||
| 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 (Offset != 0UL) { | |||
| output.WriteRawTag(8); | |||
| output.WriteUInt64(Offset); | |||
| } | |||
| if (Name.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(Name); | |||
| } | |||
| if (Length != 0UL) { | |||
| output.WriteRawTag(24); | |||
| output.WriteUInt64(Length); | |||
| } | |||
| 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 (Offset != 0UL) { | |||
| @@ -187,6 +232,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(MemmappedFileSystemDirectoryElement other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -204,7 +250,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -225,30 +275,66 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Offset = input.ReadUInt64(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| Name = input.ReadString(); | |||
| break; | |||
| } | |||
| case 24: { | |||
| Length = input.ReadUInt64(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// A directory of regions in a memmapped file. | |||
| /// </summary> | |||
| public sealed partial class MemmappedFileSystemDirectory : pb::IMessage<MemmappedFileSystemDirectory> { | |||
| public sealed partial class MemmappedFileSystemDirectory : pb::IMessage<MemmappedFileSystemDirectory> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<MemmappedFileSystemDirectory> _parser = new pb::MessageParser<MemmappedFileSystemDirectory>(() => new MemmappedFileSystemDirectory()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<MemmappedFileSystemDirectory> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.MemmappedFileSystemReflection.Descriptor.MessageTypes[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 MemmappedFileSystemDirectory() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -256,12 +342,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public MemmappedFileSystemDirectory(MemmappedFileSystemDirectory other) : this() { | |||
| element_ = other.element_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public MemmappedFileSystemDirectory Clone() { | |||
| return new MemmappedFileSystemDirectory(this); | |||
| } | |||
| @@ -272,16 +360,19 @@ namespace Tensorflow { | |||
| = pb::FieldCodec.ForMessage(10, global::Tensorflow.MemmappedFileSystemDirectoryElement.Parser); | |||
| private readonly pbc::RepeatedField<global::Tensorflow.MemmappedFileSystemDirectoryElement> element_ = new pbc::RepeatedField<global::Tensorflow.MemmappedFileSystemDirectoryElement>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.MemmappedFileSystemDirectoryElement> Element { | |||
| get { return element_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as MemmappedFileSystemDirectory); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(MemmappedFileSystemDirectory other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -294,6 +385,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= element_.GetHashCode(); | |||
| @@ -304,19 +396,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| element_.WriteTo(output, _repeated_element_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) { | |||
| element_.WriteTo(ref output, _repeated_element_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 += element_.CalculateSize(_repeated_element_codec); | |||
| @@ -327,6 +437,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(MemmappedFileSystemDirectory other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -336,7 +447,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -349,7 +464,27 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| element_.AddEntriesFrom(ref input, _repeated_element_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/node_def.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -26,44 +26,54 @@ namespace Tensorflow { | |||
| string.Concat( | |||
| "Cih0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL25vZGVfZGVmLnByb3RvEgp0", | |||
| "ZW5zb3JmbG93Gip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2F0dHJfdmFs", | |||
| "dWUucHJvdG8i0gIKB05vZGVEZWYSDAoEbmFtZRgBIAEoCRIKCgJvcBgCIAEo", | |||
| "CRINCgVpbnB1dBgDIAMoCRIOCgZkZXZpY2UYBCABKAkSKwoEYXR0chgFIAMo", | |||
| "CzIdLnRlbnNvcmZsb3cuTm9kZURlZi5BdHRyRW50cnkSSgoXZXhwZXJpbWVu", | |||
| "dGFsX2RlYnVnX2luZm8YBiABKAsyKS50ZW5zb3JmbG93Lk5vZGVEZWYuRXhw", | |||
| "ZXJpbWVudGFsRGVidWdJbmZvGkIKCUF0dHJFbnRyeRILCgNrZXkYASABKAkS", | |||
| "JAoFdmFsdWUYAiABKAsyFS50ZW5zb3JmbG93LkF0dHJWYWx1ZToCOAEaUQoV", | |||
| "RXhwZXJpbWVudGFsRGVidWdJbmZvEhsKE29yaWdpbmFsX25vZGVfbmFtZXMY", | |||
| "ASADKAkSGwoTb3JpZ2luYWxfZnVuY19uYW1lcxgCIAMoCUJ7ChhvcmcudGVu", | |||
| "c29yZmxvdy5mcmFtZXdvcmtCCU5vZGVQcm90b1ABWk9naXRodWIuY29tL3Rl", | |||
| "bnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvZnJhbWV3", | |||
| "b3JrL25vZGVfZGVmX2dvX3Byb3Rv+AEBYgZwcm90bzM=")); | |||
| "dWUucHJvdG8aKXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvZnVsbF90eXBl", | |||
| "LnByb3RvIoYDCgdOb2RlRGVmEgwKBG5hbWUYASABKAkSCgoCb3AYAiABKAkS", | |||
| "DQoFaW5wdXQYAyADKAkSDgoGZGV2aWNlGAQgASgJEisKBGF0dHIYBSADKAsy", | |||
| "HS50ZW5zb3JmbG93Lk5vZGVEZWYuQXR0ckVudHJ5EkoKF2V4cGVyaW1lbnRh", | |||
| "bF9kZWJ1Z19pbmZvGAYgASgLMikudGVuc29yZmxvdy5Ob2RlRGVmLkV4cGVy", | |||
| "aW1lbnRhbERlYnVnSW5mbxIyChFleHBlcmltZW50YWxfdHlwZRgHIAEoCzIX", | |||
| "LnRlbnNvcmZsb3cuRnVsbFR5cGVEZWYaQgoJQXR0ckVudHJ5EgsKA2tleRgB", | |||
| "IAEoCRIkCgV2YWx1ZRgCIAEoCzIVLnRlbnNvcmZsb3cuQXR0clZhbHVlOgI4", | |||
| "ARpRChVFeHBlcmltZW50YWxEZWJ1Z0luZm8SGwoTb3JpZ2luYWxfbm9kZV9u", | |||
| "YW1lcxgBIAMoCRIbChNvcmlnaW5hbF9mdW5jX25hbWVzGAIgAygJQnsKGG9y", | |||
| "Zy50ZW5zb3JmbG93LmZyYW1ld29ya0IJTm9kZVByb3RvUAFaT2dpdGh1Yi5j", | |||
| "b20vdGVuc29yZmxvdy90ZW5zb3JmbG93L3RlbnNvcmZsb3cvZ28vY29yZS9m", | |||
| "cmFtZXdvcmsvbm9kZV9kZWZfZ29fcHJvdG/4AQFiBnByb3RvMw==")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { global::Tensorflow.AttrValueReflection.Descriptor, }, | |||
| new pbr::FileDescriptor[] { global::Tensorflow.AttrValueReflection.Descriptor, global::Tensorflow.FullTypeReflection.Descriptor, }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NodeDef), global::Tensorflow.NodeDef.Parser, new[]{ "Name", "Op", "Input", "Device", "Attr", "ExperimentalDebugInfo" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo), global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo.Parser, new[]{ "OriginalNodeNames", "OriginalFuncNames" }, null, null, null, null)}) | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NodeDef), global::Tensorflow.NodeDef.Parser, new[]{ "Name", "Op", "Input", "Device", "Attr", "ExperimentalDebugInfo", "ExperimentalType" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo), global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo.Parser, new[]{ "OriginalNodeNames", "OriginalFuncNames" }, null, null, null, null)}) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| public sealed partial class NodeDef : pb::IMessage<NodeDef> { | |||
| public sealed partial class NodeDef : pb::IMessage<NodeDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<NodeDef> _parser = new pb::MessageParser<NodeDef>(() => new NodeDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<NodeDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.NodeDefReflection.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 NodeDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -71,6 +81,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public NodeDef(NodeDef other) : this() { | |||
| name_ = other.name_; | |||
| op_ = other.op_; | |||
| @@ -78,10 +89,12 @@ namespace Tensorflow { | |||
| device_ = other.device_; | |||
| attr_ = other.attr_.Clone(); | |||
| experimentalDebugInfo_ = other.experimentalDebugInfo_ != null ? other.experimentalDebugInfo_.Clone() : null; | |||
| experimentalType_ = other.experimentalType_ != null ? other.experimentalType_.Clone() : null; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public NodeDef Clone() { | |||
| return new NodeDef(this); | |||
| } | |||
| @@ -95,6 +108,7 @@ namespace Tensorflow { | |||
| /// Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_>./]*". | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -110,6 +124,7 @@ namespace Tensorflow { | |||
| /// Op names starting with an underscore are reserved for internal use. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Op { | |||
| get { return op_; } | |||
| set { | |||
| @@ -130,6 +145,7 @@ namespace Tensorflow { | |||
| /// "^node". | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> Input { | |||
| get { return input_; } | |||
| } | |||
| @@ -160,6 +176,7 @@ namespace Tensorflow { | |||
| /// choose a device automatically. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Device { | |||
| get { return device_; } | |||
| set { | |||
| @@ -187,6 +204,7 @@ namespace Tensorflow { | |||
| /// TODO(josh11b): Add some examples here showing best practices. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::MapField<string, global::Tensorflow.AttrValue> Attr { | |||
| get { return attr_; } | |||
| } | |||
| @@ -198,6 +216,7 @@ namespace Tensorflow { | |||
| /// This stores debug information associated with the node. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo ExperimentalDebugInfo { | |||
| get { return experimentalDebugInfo_; } | |||
| set { | |||
| @@ -205,12 +224,32 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| /// <summary>Field number for the "experimental_type" field.</summary> | |||
| public const int ExperimentalTypeFieldNumber = 7; | |||
| private global::Tensorflow.FullTypeDef experimentalType_; | |||
| /// <summary> | |||
| /// The complete type of this node. Experimental and subject to change. | |||
| /// Currently, the field only contains the return types of the node. That will | |||
| /// extend in the future to contain the entire signature of the node, as a | |||
| /// function type. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.FullTypeDef ExperimentalType { | |||
| get { return experimentalType_; } | |||
| set { | |||
| experimentalType_ = value; | |||
| } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as NodeDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(NodeDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -224,10 +263,12 @@ namespace Tensorflow { | |||
| if (Device != other.Device) return false; | |||
| if (!Attr.Equals(other.Attr)) return false; | |||
| if (!object.Equals(ExperimentalDebugInfo, other.ExperimentalDebugInfo)) return false; | |||
| if (!object.Equals(ExperimentalType, other.ExperimentalType)) 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(); | |||
| @@ -236,6 +277,7 @@ namespace Tensorflow { | |||
| if (Device.Length != 0) hash ^= Device.GetHashCode(); | |||
| hash ^= Attr.GetHashCode(); | |||
| if (experimentalDebugInfo_ != null) hash ^= ExperimentalDebugInfo.GetHashCode(); | |||
| if (experimentalType_ != null) hash ^= ExperimentalType.GetHashCode(); | |||
| if (_unknownFields != null) { | |||
| hash ^= _unknownFields.GetHashCode(); | |||
| } | |||
| @@ -243,12 +285,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -267,12 +314,50 @@ namespace Tensorflow { | |||
| output.WriteRawTag(50); | |||
| output.WriteMessage(ExperimentalDebugInfo); | |||
| } | |||
| if (experimentalType_ != null) { | |||
| output.WriteRawTag(58); | |||
| output.WriteMessage(ExperimentalType); | |||
| } | |||
| 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 (Op.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(Op); | |||
| } | |||
| input_.WriteTo(ref output, _repeated_input_codec); | |||
| if (Device.Length != 0) { | |||
| output.WriteRawTag(34); | |||
| output.WriteString(Device); | |||
| } | |||
| attr_.WriteTo(ref output, _map_attr_codec); | |||
| if (experimentalDebugInfo_ != null) { | |||
| output.WriteRawTag(50); | |||
| output.WriteMessage(ExperimentalDebugInfo); | |||
| } | |||
| if (experimentalType_ != null) { | |||
| output.WriteRawTag(58); | |||
| output.WriteMessage(ExperimentalType); | |||
| } | |||
| 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) { | |||
| @@ -289,6 +374,9 @@ namespace Tensorflow { | |||
| if (experimentalDebugInfo_ != null) { | |||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExperimentalDebugInfo); | |||
| } | |||
| if (experimentalType_ != null) { | |||
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExperimentalType); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| @@ -296,6 +384,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(NodeDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -310,18 +399,28 @@ namespace Tensorflow { | |||
| if (other.Device.Length != 0) { | |||
| Device = other.Device; | |||
| } | |||
| attr_.Add(other.attr_); | |||
| attr_.MergeFrom(other.attr_); | |||
| if (other.experimentalDebugInfo_ != null) { | |||
| if (experimentalDebugInfo_ == null) { | |||
| ExperimentalDebugInfo = new global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo(); | |||
| } | |||
| ExperimentalDebugInfo.MergeFrom(other.ExperimentalDebugInfo); | |||
| } | |||
| if (other.experimentalType_ != null) { | |||
| if (experimentalType_ == null) { | |||
| ExperimentalType = new global::Tensorflow.FullTypeDef(); | |||
| } | |||
| ExperimentalType.MergeFrom(other.ExperimentalType); | |||
| } | |||
| _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) { | |||
| @@ -355,31 +454,97 @@ namespace Tensorflow { | |||
| input.ReadMessage(ExperimentalDebugInfo); | |||
| break; | |||
| } | |||
| case 58: { | |||
| if (experimentalType_ == null) { | |||
| ExperimentalType = new global::Tensorflow.FullTypeDef(); | |||
| } | |||
| input.ReadMessage(ExperimentalType); | |||
| 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: { | |||
| Op = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| input_.AddEntriesFrom(ref input, _repeated_input_codec); | |||
| break; | |||
| } | |||
| case 34: { | |||
| Device = input.ReadString(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| attr_.AddEntriesFrom(ref input, _map_attr_codec); | |||
| break; | |||
| } | |||
| case 50: { | |||
| if (experimentalDebugInfo_ == null) { | |||
| ExperimentalDebugInfo = new global::Tensorflow.NodeDef.Types.ExperimentalDebugInfo(); | |||
| } | |||
| input.ReadMessage(ExperimentalDebugInfo); | |||
| break; | |||
| } | |||
| case 58: { | |||
| if (experimentalType_ == null) { | |||
| ExperimentalType = new global::Tensorflow.FullTypeDef(); | |||
| } | |||
| input.ReadMessage(ExperimentalType); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the NodeDef message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| public sealed partial class ExperimentalDebugInfo : pb::IMessage<ExperimentalDebugInfo> { | |||
| public sealed partial class ExperimentalDebugInfo : pb::IMessage<ExperimentalDebugInfo> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ExperimentalDebugInfo> _parser = new pb::MessageParser<ExperimentalDebugInfo>(() => new ExperimentalDebugInfo()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ExperimentalDebugInfo> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.NodeDef.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 ExperimentalDebugInfo() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -387,6 +552,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ExperimentalDebugInfo(ExperimentalDebugInfo other) : this() { | |||
| originalNodeNames_ = other.originalNodeNames_.Clone(); | |||
| originalFuncNames_ = other.originalFuncNames_.Clone(); | |||
| @@ -394,6 +560,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ExperimentalDebugInfo Clone() { | |||
| return new ExperimentalDebugInfo(this); | |||
| } | |||
| @@ -413,6 +580,7 @@ namespace Tensorflow { | |||
| /// current node to some top level source code. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> OriginalNodeNames { | |||
| get { return originalNodeNames_; } | |||
| } | |||
| @@ -432,16 +600,19 @@ namespace Tensorflow { | |||
| /// current ndoe to some top level source code. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<string> OriginalFuncNames { | |||
| get { return originalFuncNames_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ExperimentalDebugInfo); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ExperimentalDebugInfo other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -455,6 +626,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= originalNodeNames_.GetHashCode(); | |||
| @@ -466,20 +638,39 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| originalNodeNames_.WriteTo(output, _repeated_originalNodeNames_codec); | |||
| originalFuncNames_.WriteTo(output, _repeated_originalFuncNames_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) { | |||
| originalNodeNames_.WriteTo(ref output, _repeated_originalNodeNames_codec); | |||
| originalFuncNames_.WriteTo(ref output, _repeated_originalFuncNames_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 += originalNodeNames_.CalculateSize(_repeated_originalNodeNames_codec); | |||
| @@ -491,6 +682,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ExperimentalDebugInfo other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -501,7 +693,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -518,7 +714,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| originalNodeNames_.AddEntriesFrom(ref input, _repeated_originalNodeNames_codec); | |||
| break; | |||
| } | |||
| case 18: { | |||
| originalFuncNames_.AddEntriesFrom(ref input, _repeated_originalFuncNames_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/resource_handle.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -53,23 +53,31 @@ namespace Tensorflow { | |||
| /// not valid across executions, but can be serialized back and forth from within | |||
| /// a single run. | |||
| /// </summary> | |||
| public sealed partial class ResourceHandleProto : pb::IMessage<ResourceHandleProto> { | |||
| public sealed partial class ResourceHandleProto : pb::IMessage<ResourceHandleProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<ResourceHandleProto> _parser = new pb::MessageParser<ResourceHandleProto>(() => new ResourceHandleProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<ResourceHandleProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ResourceHandleReflection.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 ResourceHandleProto() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -77,6 +85,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ResourceHandleProto(ResourceHandleProto other) : this() { | |||
| device_ = other.device_; | |||
| container_ = other.container_; | |||
| @@ -88,6 +97,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ResourceHandleProto Clone() { | |||
| return new ResourceHandleProto(this); | |||
| } | |||
| @@ -99,6 +109,7 @@ namespace Tensorflow { | |||
| /// Unique name for the device containing the resource. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Device { | |||
| get { return device_; } | |||
| set { | |||
| @@ -113,6 +124,7 @@ namespace Tensorflow { | |||
| /// Container in which this resource is placed. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Container { | |||
| get { return container_; } | |||
| set { | |||
| @@ -127,6 +139,7 @@ namespace Tensorflow { | |||
| /// Unique name of this resource. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -142,6 +155,7 @@ namespace Tensorflow { | |||
| /// and in the same execution. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public ulong HashCode { | |||
| get { return hashCode_; } | |||
| set { | |||
| @@ -157,6 +171,7 @@ namespace Tensorflow { | |||
| /// available. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string MaybeTypeName { | |||
| get { return maybeTypeName_; } | |||
| set { | |||
| @@ -173,16 +188,19 @@ namespace Tensorflow { | |||
| /// Data types and shapes for the underlying resource. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.ResourceHandleProto.Types.DtypeAndShape> DtypesAndShapes { | |||
| get { return dtypesAndShapes_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as ResourceHandleProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(ResourceHandleProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -200,6 +218,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Device.Length != 0) hash ^= Device.GetHashCode(); | |||
| @@ -215,12 +234,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Device.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Device); | |||
| @@ -245,9 +269,42 @@ namespace Tensorflow { | |||
| 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 (Device.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(Device); | |||
| } | |||
| if (Container.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(Container); | |||
| } | |||
| if (Name.Length != 0) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(Name); | |||
| } | |||
| if (HashCode != 0UL) { | |||
| output.WriteRawTag(32); | |||
| output.WriteUInt64(HashCode); | |||
| } | |||
| if (MaybeTypeName.Length != 0) { | |||
| output.WriteRawTag(42); | |||
| output.WriteString(MaybeTypeName); | |||
| } | |||
| dtypesAndShapes_.WriteTo(ref output, _repeated_dtypesAndShapes_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; | |||
| if (Device.Length != 0) { | |||
| @@ -273,6 +330,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(ResourceHandleProto other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -297,7 +355,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -330,32 +392,81 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Device = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| Container = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| Name = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| HashCode = input.ReadUInt64(); | |||
| break; | |||
| } | |||
| case 42: { | |||
| MaybeTypeName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 50: { | |||
| dtypesAndShapes_.AddEntriesFrom(ref input, _repeated_dtypesAndShapes_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the ResourceHandleProto message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| /// <summary> | |||
| /// Protocol buffer representing a pair of (data type, tensor shape). | |||
| /// </summary> | |||
| public sealed partial class DtypeAndShape : pb::IMessage<DtypeAndShape> { | |||
| public sealed partial class DtypeAndShape : pb::IMessage<DtypeAndShape> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<DtypeAndShape> _parser = new pb::MessageParser<DtypeAndShape>(() => new DtypeAndShape()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<DtypeAndShape> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.ResourceHandleProto.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 DtypeAndShape() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -363,6 +474,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DtypeAndShape(DtypeAndShape other) : this() { | |||
| dtype_ = other.dtype_; | |||
| shape_ = other.shape_ != null ? other.shape_.Clone() : null; | |||
| @@ -370,6 +482,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public DtypeAndShape Clone() { | |||
| return new DtypeAndShape(this); | |||
| } | |||
| @@ -378,6 +491,7 @@ namespace Tensorflow { | |||
| public const int DtypeFieldNumber = 1; | |||
| 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 { | |||
| @@ -389,6 +503,7 @@ namespace Tensorflow { | |||
| public const int ShapeFieldNumber = 2; | |||
| 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 { | |||
| @@ -397,11 +512,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as DtypeAndShape); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(DtypeAndShape other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -415,6 +532,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); | |||
| @@ -426,12 +544,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| @@ -443,9 +566,29 @@ namespace Tensorflow { | |||
| 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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| } | |||
| if (shape_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(Shape); | |||
| } | |||
| 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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| @@ -461,6 +604,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(DtypeAndShape other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -478,7 +622,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -498,7 +646,34 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Dtype = (global::Tensorflow.DataType) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| if (shape_ == null) { | |||
| Shape = new global::Tensorflow.TensorShapeProto(); | |||
| } | |||
| input.ReadMessage(Shape); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/saved_model.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -46,23 +46,31 @@ namespace Tensorflow { | |||
| /// SavedModel is the high level serialization format for TensorFlow Models. | |||
| /// See [todo: doc links, similar to session_bundle] for more information. | |||
| /// </summary> | |||
| public sealed partial class SavedModel : pb::IMessage<SavedModel> { | |||
| public sealed partial class SavedModel : pb::IMessage<SavedModel> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<SavedModel> _parser = new pb::MessageParser<SavedModel>(() => new SavedModel()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<SavedModel> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.SavedModelReflection.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 SavedModel() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -70,6 +78,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SavedModel(SavedModel other) : this() { | |||
| savedModelSchemaVersion_ = other.savedModelSchemaVersion_; | |||
| metaGraphs_ = other.metaGraphs_.Clone(); | |||
| @@ -77,6 +86,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SavedModel Clone() { | |||
| return new SavedModel(this); | |||
| } | |||
| @@ -90,6 +100,7 @@ namespace Tensorflow { | |||
| /// at release will be 1. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long SavedModelSchemaVersion { | |||
| get { return savedModelSchemaVersion_; } | |||
| set { | |||
| @@ -106,16 +117,19 @@ namespace Tensorflow { | |||
| /// One or more MetaGraphs. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.MetaGraphDef> MetaGraphs { | |||
| get { return metaGraphs_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as SavedModel); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(SavedModel other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -129,6 +143,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (SavedModelSchemaVersion != 0L) hash ^= SavedModelSchemaVersion.GetHashCode(); | |||
| @@ -140,12 +155,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (SavedModelSchemaVersion != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(SavedModelSchemaVersion); | |||
| @@ -154,9 +174,26 @@ namespace Tensorflow { | |||
| 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 (SavedModelSchemaVersion != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(SavedModelSchemaVersion); | |||
| } | |||
| metaGraphs_.WriteTo(ref output, _repeated_metaGraphs_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; | |||
| if (SavedModelSchemaVersion != 0L) { | |||
| @@ -170,6 +207,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(SavedModel other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -182,7 +220,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -199,7 +241,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| SavedModelSchemaVersion = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| metaGraphs_.AddEntriesFrom(ref input, _repeated_metaGraphs_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/saver.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -48,23 +48,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Protocol buffer representing the configuration of a Saver. | |||
| /// </summary> | |||
| public sealed partial class SaverDef : pb::IMessage<SaverDef> { | |||
| public sealed partial class SaverDef : pb::IMessage<SaverDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<SaverDef> _parser = new pb::MessageParser<SaverDef>(() => new SaverDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<SaverDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.SaverReflection.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 SaverDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -72,6 +80,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SaverDef(SaverDef other) : this() { | |||
| filenameTensorName_ = other.filenameTensorName_; | |||
| saveTensorName_ = other.saveTensorName_; | |||
| @@ -84,6 +93,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SaverDef Clone() { | |||
| return new SaverDef(this); | |||
| } | |||
| @@ -96,6 +106,7 @@ namespace Tensorflow { | |||
| /// restoring a model checkpoint. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string FilenameTensorName { | |||
| get { return filenameTensorName_; } | |||
| set { | |||
| @@ -110,6 +121,7 @@ namespace Tensorflow { | |||
| /// The operation to run when saving a model checkpoint. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string SaveTensorName { | |||
| get { return saveTensorName_; } | |||
| set { | |||
| @@ -124,6 +136,7 @@ namespace Tensorflow { | |||
| /// The operation to run when restoring a model checkpoint. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string RestoreOpName { | |||
| get { return restoreOpName_; } | |||
| set { | |||
| @@ -138,6 +151,7 @@ namespace Tensorflow { | |||
| /// Maximum number of checkpoints to keep. If 0, no checkpoints are deleted. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int MaxToKeep { | |||
| get { return maxToKeep_; } | |||
| set { | |||
| @@ -152,6 +166,7 @@ namespace Tensorflow { | |||
| /// Shard the save files, one per device that has Variable nodes. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Sharded { | |||
| get { return sharded_; } | |||
| set { | |||
| @@ -169,6 +184,7 @@ namespace Tensorflow { | |||
| /// for every n hours of training. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public float KeepCheckpointEveryNHours { | |||
| get { return keepCheckpointEveryNHours_; } | |||
| set { | |||
| @@ -180,6 +196,7 @@ namespace Tensorflow { | |||
| public const int VersionFieldNumber = 7; | |||
| private global::Tensorflow.SaverDef.Types.CheckpointFormatVersion version_ = global::Tensorflow.SaverDef.Types.CheckpointFormatVersion.Legacy; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.SaverDef.Types.CheckpointFormatVersion Version { | |||
| get { return version_; } | |||
| set { | |||
| @@ -188,11 +205,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as SaverDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(SaverDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -211,6 +230,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (FilenameTensorName.Length != 0) hash ^= FilenameTensorName.GetHashCode(); | |||
| @@ -227,12 +247,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (FilenameTensorName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(FilenameTensorName); | |||
| @@ -264,9 +289,49 @@ namespace Tensorflow { | |||
| 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 (FilenameTensorName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(FilenameTensorName); | |||
| } | |||
| if (SaveTensorName.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(SaveTensorName); | |||
| } | |||
| if (RestoreOpName.Length != 0) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(RestoreOpName); | |||
| } | |||
| if (MaxToKeep != 0) { | |||
| output.WriteRawTag(32); | |||
| output.WriteInt32(MaxToKeep); | |||
| } | |||
| if (Sharded != false) { | |||
| output.WriteRawTag(40); | |||
| output.WriteBool(Sharded); | |||
| } | |||
| if (KeepCheckpointEveryNHours != 0F) { | |||
| output.WriteRawTag(53); | |||
| output.WriteFloat(KeepCheckpointEveryNHours); | |||
| } | |||
| if (Version != global::Tensorflow.SaverDef.Types.CheckpointFormatVersion.Legacy) { | |||
| output.WriteRawTag(56); | |||
| output.WriteEnum((int) Version); | |||
| } | |||
| 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 (FilenameTensorName.Length != 0) { | |||
| @@ -297,6 +362,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(SaverDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -326,7 +392,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -363,11 +433,56 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| FilenameTensorName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| SaveTensorName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| RestoreOpName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| MaxToKeep = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 40: { | |||
| Sharded = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 53: { | |||
| KeepCheckpointEveryNHours = input.ReadFloat(); | |||
| break; | |||
| } | |||
| case 56: { | |||
| Version = (global::Tensorflow.SaverDef.Types.CheckpointFormatVersion) input.ReadEnum(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the SaverDef message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| /// <summary> | |||
| /// A version number that identifies a different on-disk checkpoint format. | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/tensor.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -60,23 +60,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Protocol buffer representing a tensor. | |||
| /// </summary> | |||
| public sealed partial class TensorProto : pb::IMessage<TensorProto> { | |||
| public sealed partial class TensorProto : pb::IMessage<TensorProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<TensorProto> _parser = new pb::MessageParser<TensorProto>(() => new TensorProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<TensorProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorReflection.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 TensorProto() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -84,6 +92,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorProto(TensorProto other) : this() { | |||
| dtype_ = other.dtype_; | |||
| tensorShape_ = other.tensorShape_ != null ? other.tensorShape_.Clone() : null; | |||
| @@ -106,6 +115,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorProto Clone() { | |||
| return new TensorProto(this); | |||
| } | |||
| @@ -114,6 +124,7 @@ namespace Tensorflow { | |||
| public const int DtypeFieldNumber = 1; | |||
| 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 { | |||
| @@ -128,6 +139,7 @@ namespace Tensorflow { | |||
| /// Shape of the tensor. TODO(touts): sort out the 0-rank issues. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.TensorShapeProto TensorShape { | |||
| get { return tensorShape_; } | |||
| set { | |||
| @@ -146,6 +158,7 @@ namespace Tensorflow { | |||
| /// to represent a constant Tensor with a single value. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int VersionNumber { | |||
| get { return versionNumber_; } | |||
| set { | |||
| @@ -164,6 +177,7 @@ namespace Tensorflow { | |||
| /// many repeated small items. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pb::ByteString TensorContent { | |||
| get { return tensorContent_; } | |||
| set { | |||
| @@ -181,6 +195,7 @@ namespace Tensorflow { | |||
| /// have some pointless zero padding for each value here. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<int> HalfVal { | |||
| get { return halfVal_; } | |||
| } | |||
| @@ -194,6 +209,7 @@ namespace Tensorflow { | |||
| /// DT_FLOAT. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<float> FloatVal { | |||
| get { return floatVal_; } | |||
| } | |||
| @@ -207,6 +223,7 @@ namespace Tensorflow { | |||
| /// DT_DOUBLE. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<double> DoubleVal { | |||
| get { return doubleVal_; } | |||
| } | |||
| @@ -220,6 +237,7 @@ namespace Tensorflow { | |||
| /// DT_INT32, DT_INT16, DT_UINT16, DT_INT8, DT_UINT8. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<int> IntVal { | |||
| get { return intVal_; } | |||
| } | |||
| @@ -233,6 +251,7 @@ namespace Tensorflow { | |||
| /// DT_STRING | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<pb::ByteString> StringVal { | |||
| get { return stringVal_; } | |||
| } | |||
| @@ -247,6 +266,7 @@ namespace Tensorflow { | |||
| /// and imaginary parts of i-th single precision complex. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<float> ScomplexVal { | |||
| get { return scomplexVal_; } | |||
| } | |||
| @@ -260,6 +280,7 @@ namespace Tensorflow { | |||
| /// DT_INT64 | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> Int64Val { | |||
| get { return int64Val_; } | |||
| } | |||
| @@ -273,6 +294,7 @@ namespace Tensorflow { | |||
| /// DT_BOOL | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<bool> BoolVal { | |||
| get { return boolVal_; } | |||
| } | |||
| @@ -287,6 +309,7 @@ namespace Tensorflow { | |||
| /// and imaginary parts of i-th double precision complex. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<double> DcomplexVal { | |||
| get { return dcomplexVal_; } | |||
| } | |||
| @@ -300,6 +323,7 @@ namespace Tensorflow { | |||
| /// DT_RESOURCE | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.ResourceHandleProto> ResourceHandleVal { | |||
| get { return resourceHandleVal_; } | |||
| } | |||
| @@ -313,6 +337,7 @@ namespace Tensorflow { | |||
| /// DT_VARIANT | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.VariantTensorDataProto> VariantVal { | |||
| get { return variantVal_; } | |||
| } | |||
| @@ -326,6 +351,7 @@ namespace Tensorflow { | |||
| /// DT_UINT32 | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<uint> Uint32Val { | |||
| get { return uint32Val_; } | |||
| } | |||
| @@ -339,16 +365,19 @@ namespace Tensorflow { | |||
| /// DT_UINT64 | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<ulong> Uint64Val { | |||
| get { return uint64Val_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as TensorProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(TensorProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -377,6 +406,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); | |||
| @@ -403,12 +433,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| @@ -441,9 +476,50 @@ namespace Tensorflow { | |||
| 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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| } | |||
| if (tensorShape_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(TensorShape); | |||
| } | |||
| if (VersionNumber != 0) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt32(VersionNumber); | |||
| } | |||
| if (TensorContent.Length != 0) { | |||
| output.WriteRawTag(34); | |||
| output.WriteBytes(TensorContent); | |||
| } | |||
| floatVal_.WriteTo(ref output, _repeated_floatVal_codec); | |||
| doubleVal_.WriteTo(ref output, _repeated_doubleVal_codec); | |||
| intVal_.WriteTo(ref output, _repeated_intVal_codec); | |||
| stringVal_.WriteTo(ref output, _repeated_stringVal_codec); | |||
| scomplexVal_.WriteTo(ref output, _repeated_scomplexVal_codec); | |||
| int64Val_.WriteTo(ref output, _repeated_int64Val_codec); | |||
| boolVal_.WriteTo(ref output, _repeated_boolVal_codec); | |||
| dcomplexVal_.WriteTo(ref output, _repeated_dcomplexVal_codec); | |||
| halfVal_.WriteTo(ref output, _repeated_halfVal_codec); | |||
| resourceHandleVal_.WriteTo(ref output, _repeated_resourceHandleVal_codec); | |||
| variantVal_.WriteTo(ref output, _repeated_variantVal_codec); | |||
| uint32Val_.WriteTo(ref output, _repeated_uint32Val_codec); | |||
| uint64Val_.WriteTo(ref output, _repeated_uint64Val_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; | |||
| if (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| @@ -478,6 +554,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(TensorProto other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -514,7 +591,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -604,30 +685,135 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Dtype = (global::Tensorflow.DataType) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| if (tensorShape_ == null) { | |||
| TensorShape = new global::Tensorflow.TensorShapeProto(); | |||
| } | |||
| input.ReadMessage(TensorShape); | |||
| break; | |||
| } | |||
| case 24: { | |||
| VersionNumber = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 34: { | |||
| TensorContent = input.ReadBytes(); | |||
| break; | |||
| } | |||
| case 42: | |||
| case 45: { | |||
| floatVal_.AddEntriesFrom(ref input, _repeated_floatVal_codec); | |||
| break; | |||
| } | |||
| case 50: | |||
| case 49: { | |||
| doubleVal_.AddEntriesFrom(ref input, _repeated_doubleVal_codec); | |||
| break; | |||
| } | |||
| case 58: | |||
| case 56: { | |||
| intVal_.AddEntriesFrom(ref input, _repeated_intVal_codec); | |||
| break; | |||
| } | |||
| case 66: { | |||
| stringVal_.AddEntriesFrom(ref input, _repeated_stringVal_codec); | |||
| break; | |||
| } | |||
| case 74: | |||
| case 77: { | |||
| scomplexVal_.AddEntriesFrom(ref input, _repeated_scomplexVal_codec); | |||
| break; | |||
| } | |||
| case 82: | |||
| case 80: { | |||
| int64Val_.AddEntriesFrom(ref input, _repeated_int64Val_codec); | |||
| break; | |||
| } | |||
| case 90: | |||
| case 88: { | |||
| boolVal_.AddEntriesFrom(ref input, _repeated_boolVal_codec); | |||
| break; | |||
| } | |||
| case 98: | |||
| case 97: { | |||
| dcomplexVal_.AddEntriesFrom(ref input, _repeated_dcomplexVal_codec); | |||
| break; | |||
| } | |||
| case 106: | |||
| case 104: { | |||
| halfVal_.AddEntriesFrom(ref input, _repeated_halfVal_codec); | |||
| break; | |||
| } | |||
| case 114: { | |||
| resourceHandleVal_.AddEntriesFrom(ref input, _repeated_resourceHandleVal_codec); | |||
| break; | |||
| } | |||
| case 122: { | |||
| variantVal_.AddEntriesFrom(ref input, _repeated_variantVal_codec); | |||
| break; | |||
| } | |||
| case 130: | |||
| case 128: { | |||
| uint32Val_.AddEntriesFrom(ref input, _repeated_uint32Val_codec); | |||
| break; | |||
| } | |||
| case 138: | |||
| case 136: { | |||
| uint64Val_.AddEntriesFrom(ref input, _repeated_uint64Val_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| /// <summary> | |||
| /// Protocol buffer representing the serialization format of DT_VARIANT tensors. | |||
| /// </summary> | |||
| public sealed partial class VariantTensorDataProto : pb::IMessage<VariantTensorDataProto> { | |||
| public sealed partial class VariantTensorDataProto : pb::IMessage<VariantTensorDataProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<VariantTensorDataProto> _parser = new pb::MessageParser<VariantTensorDataProto>(() => new VariantTensorDataProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<VariantTensorDataProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorReflection.Descriptor.MessageTypes[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 VariantTensorDataProto() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -635,6 +821,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VariantTensorDataProto(VariantTensorDataProto other) : this() { | |||
| typeName_ = other.typeName_; | |||
| metadata_ = other.metadata_; | |||
| @@ -643,6 +830,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VariantTensorDataProto Clone() { | |||
| return new VariantTensorDataProto(this); | |||
| } | |||
| @@ -654,6 +842,7 @@ namespace Tensorflow { | |||
| /// Name of the type of objects being serialized. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string TypeName { | |||
| get { return typeName_; } | |||
| set { | |||
| @@ -668,6 +857,7 @@ namespace Tensorflow { | |||
| /// Portions of the object that are not Tensors. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pb::ByteString Metadata { | |||
| get { return metadata_; } | |||
| set { | |||
| @@ -684,16 +874,19 @@ namespace Tensorflow { | |||
| /// Tensors contained within objects being serialized. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.TensorProto> Tensors { | |||
| get { return tensors_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as VariantTensorDataProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(VariantTensorDataProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -708,6 +901,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); | |||
| @@ -720,12 +914,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (TypeName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(TypeName); | |||
| @@ -738,9 +937,30 @@ namespace Tensorflow { | |||
| 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 (TypeName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(TypeName); | |||
| } | |||
| if (Metadata.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteBytes(Metadata); | |||
| } | |||
| tensors_.WriteTo(ref output, _repeated_tensors_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; | |||
| if (TypeName.Length != 0) { | |||
| @@ -757,6 +977,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(VariantTensorDataProto other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -772,7 +993,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -793,7 +1018,35 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| TypeName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| Metadata = input.ReadBytes(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| tensors_.AddEntriesFrom(ref input, _repeated_tensors_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/tensor_description.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -46,23 +46,31 @@ namespace Tensorflow { | |||
| } | |||
| #region Messages | |||
| public sealed partial class TensorDescription : pb::IMessage<TensorDescription> { | |||
| public sealed partial class TensorDescription : pb::IMessage<TensorDescription> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<TensorDescription> _parser = new pb::MessageParser<TensorDescription>(() => new TensorDescription()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<TensorDescription> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorDescriptionReflection.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 TensorDescription() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -70,6 +78,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorDescription(TensorDescription other) : this() { | |||
| dtype_ = other.dtype_; | |||
| shape_ = other.shape_ != null ? other.shape_.Clone() : null; | |||
| @@ -78,6 +87,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorDescription Clone() { | |||
| return new TensorDescription(this); | |||
| } | |||
| @@ -89,6 +99,7 @@ namespace Tensorflow { | |||
| /// Data type of tensor elements | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.DataType Dtype { | |||
| get { return dtype_; } | |||
| set { | |||
| @@ -103,6 +114,7 @@ namespace Tensorflow { | |||
| /// Shape of the tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.TensorShapeProto Shape { | |||
| get { return shape_; } | |||
| set { | |||
| @@ -117,6 +129,7 @@ namespace Tensorflow { | |||
| /// Information about the size and allocator used for the data | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.AllocationDescription AllocationDescription { | |||
| get { return allocationDescription_; } | |||
| set { | |||
| @@ -125,11 +138,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as TensorDescription); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(TensorDescription other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -144,6 +159,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); | |||
| @@ -156,12 +172,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| @@ -177,9 +198,33 @@ namespace Tensorflow { | |||
| 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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Dtype); | |||
| } | |||
| if (shape_ != null) { | |||
| output.WriteRawTag(18); | |||
| output.WriteMessage(Shape); | |||
| } | |||
| if (allocationDescription_ != null) { | |||
| output.WriteRawTag(34); | |||
| output.WriteMessage(AllocationDescription); | |||
| } | |||
| 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 (Dtype != global::Tensorflow.DataType.DtInvalid) { | |||
| @@ -198,6 +243,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(TensorDescription other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -221,7 +267,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -248,7 +298,41 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Dtype = (global::Tensorflow.DataType) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| if (shape_ == null) { | |||
| Shape = new global::Tensorflow.TensorShapeProto(); | |||
| } | |||
| input.ReadMessage(Shape); | |||
| break; | |||
| } | |||
| case 34: { | |||
| if (allocationDescription_ == null) { | |||
| AllocationDescription = new global::Tensorflow.AllocationDescription(); | |||
| } | |||
| input.ReadMessage(AllocationDescription); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/tensor_shape.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -45,23 +45,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Dimensions of a tensor. | |||
| /// </summary> | |||
| public sealed partial class TensorShapeProto : pb::IMessage<TensorShapeProto> { | |||
| public sealed partial class TensorShapeProto : pb::IMessage<TensorShapeProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<TensorShapeProto> _parser = new pb::MessageParser<TensorShapeProto>(() => new TensorShapeProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<TensorShapeProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorShapeReflection.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 TensorShapeProto() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -69,6 +77,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorShapeProto(TensorShapeProto other) : this() { | |||
| dim_ = other.dim_.Clone(); | |||
| unknownRank_ = other.unknownRank_; | |||
| @@ -76,6 +85,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorShapeProto Clone() { | |||
| return new TensorShapeProto(this); | |||
| } | |||
| @@ -101,6 +111,7 @@ namespace Tensorflow { | |||
| /// If "dim.size()" > 0, "unknown_rank" must be false. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.TensorShapeProto.Types.Dim> Dim { | |||
| get { return dim_; } | |||
| } | |||
| @@ -114,6 +125,7 @@ namespace Tensorflow { | |||
| /// If true, "dim.size()" must be 0. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool UnknownRank { | |||
| get { return unknownRank_; } | |||
| set { | |||
| @@ -122,11 +134,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as TensorShapeProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(TensorShapeProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -140,6 +154,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= dim_.GetHashCode(); | |||
| @@ -151,12 +166,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| dim_.WriteTo(output, _repeated_dim_codec); | |||
| if (UnknownRank != false) { | |||
| output.WriteRawTag(24); | |||
| @@ -165,9 +185,26 @@ namespace Tensorflow { | |||
| 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) { | |||
| dim_.WriteTo(ref output, _repeated_dim_codec); | |||
| if (UnknownRank != false) { | |||
| output.WriteRawTag(24); | |||
| output.WriteBool(UnknownRank); | |||
| } | |||
| 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 += dim_.CalculateSize(_repeated_dim_codec); | |||
| @@ -181,6 +218,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(TensorShapeProto other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -193,7 +231,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -210,32 +252,65 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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 18: { | |||
| dim_.AddEntriesFrom(ref input, _repeated_dim_codec); | |||
| break; | |||
| } | |||
| case 24: { | |||
| UnknownRank = input.ReadBool(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the TensorShapeProto message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| /// <summary> | |||
| /// One dimension of the tensor. | |||
| /// </summary> | |||
| public sealed partial class Dim : pb::IMessage<Dim> { | |||
| public sealed partial class Dim : pb::IMessage<Dim> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<Dim> _parser = new pb::MessageParser<Dim>(() => new Dim()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<Dim> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorShapeProto.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 Dim() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -243,6 +318,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public Dim(Dim other) : this() { | |||
| size_ = other.size_; | |||
| name_ = other.name_; | |||
| @@ -250,6 +326,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public Dim Clone() { | |||
| return new Dim(this); | |||
| } | |||
| @@ -265,6 +342,7 @@ namespace Tensorflow { | |||
| /// a TensorShapeProto containing a dim value of -1. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long Size { | |||
| get { return size_; } | |||
| set { | |||
| @@ -279,6 +357,7 @@ namespace Tensorflow { | |||
| /// Optional name of the tensor dimension. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string Name { | |||
| get { return name_; } | |||
| set { | |||
| @@ -287,11 +366,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as Dim); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(Dim other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -305,6 +386,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Size != 0L) hash ^= Size.GetHashCode(); | |||
| @@ -316,12 +398,17 @@ namespace Tensorflow { | |||
| } | |||
| [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); | |||
| @@ -333,9 +420,29 @@ namespace Tensorflow { | |||
| 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 (Name.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(Name); | |||
| } | |||
| 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) { | |||
| @@ -351,6 +458,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(Dim other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -365,7 +473,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -382,7 +494,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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 18: { | |||
| Name = input.ReadString(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/tensor_slice.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -45,23 +45,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Can only be interpreted if you know the corresponding TensorShape. | |||
| /// </summary> | |||
| public sealed partial class TensorSliceProto : pb::IMessage<TensorSliceProto> { | |||
| public sealed partial class TensorSliceProto : pb::IMessage<TensorSliceProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<TensorSliceProto> _parser = new pb::MessageParser<TensorSliceProto>(() => new TensorSliceProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<TensorSliceProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorSliceReflection.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 TensorSliceProto() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -69,12 +77,14 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorSliceProto(TensorSliceProto other) : this() { | |||
| extent_ = other.extent_.Clone(); | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public TensorSliceProto Clone() { | |||
| return new TensorSliceProto(this); | |||
| } | |||
| @@ -92,16 +102,19 @@ namespace Tensorflow { | |||
| /// dimensions in the TensorShape. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<global::Tensorflow.TensorSliceProto.Types.Extent> Extent { | |||
| get { return extent_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as TensorSliceProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(TensorSliceProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -114,6 +127,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| hash ^= extent_.GetHashCode(); | |||
| @@ -124,19 +138,37 @@ namespace Tensorflow { | |||
| } | |||
| [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 | |||
| extent_.WriteTo(output, _repeated_extent_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) { | |||
| extent_.WriteTo(ref output, _repeated_extent_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 += extent_.CalculateSize(_repeated_extent_codec); | |||
| @@ -147,6 +179,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(TensorSliceProto other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -156,7 +189,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -169,32 +206,61 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| extent_.AddEntriesFrom(ref input, _repeated_extent_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the TensorSliceProto message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| /// <summary> | |||
| /// Extent of the slice in one dimension. | |||
| /// </summary> | |||
| public sealed partial class Extent : pb::IMessage<Extent> { | |||
| public sealed partial class Extent : pb::IMessage<Extent> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<Extent> _parser = new pb::MessageParser<Extent>(() => new Extent()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<Extent> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TensorSliceProto.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 Extent() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -202,6 +268,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public Extent(Extent other) : this() { | |||
| start_ = other.start_; | |||
| switch (other.HasLengthCase) { | |||
| @@ -214,6 +281,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public Extent Clone() { | |||
| return new Extent(this); | |||
| } | |||
| @@ -225,6 +293,7 @@ namespace Tensorflow { | |||
| /// Start index of the slice, starting at 0. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long Start { | |||
| get { return start_; } | |||
| set { | |||
| @@ -235,6 +304,7 @@ namespace Tensorflow { | |||
| /// <summary>Field number for the "length" field.</summary> | |||
| public const int LengthFieldNumber = 2; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long Length { | |||
| get { return hasLengthCase_ == HasLengthOneofCase.Length ? (long) hasLength_ : 0L; } | |||
| set { | |||
| @@ -251,22 +321,26 @@ namespace Tensorflow { | |||
| } | |||
| private HasLengthOneofCase hasLengthCase_ = HasLengthOneofCase.None; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public HasLengthOneofCase HasLengthCase { | |||
| get { return hasLengthCase_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearHasLength() { | |||
| hasLengthCase_ = HasLengthOneofCase.None; | |||
| hasLength_ = null; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as Extent); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(Extent other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -281,6 +355,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Start != 0L) hash ^= Start.GetHashCode(); | |||
| @@ -293,12 +368,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Start != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(Start); | |||
| @@ -310,9 +390,29 @@ namespace Tensorflow { | |||
| 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 (Start != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(Start); | |||
| } | |||
| if (hasLengthCase_ == HasLengthOneofCase.Length) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt64(Length); | |||
| } | |||
| 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 (Start != 0L) { | |||
| @@ -328,6 +428,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(Extent other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -345,7 +446,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -362,7 +467,31 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Start = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| Length = input.ReadInt64(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/types.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -25,31 +25,34 @@ namespace Tensorflow { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "CiV0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3R5cGVzLnByb3RvEgp0ZW5z", | |||
| "b3JmbG93KqoGCghEYXRhVHlwZRIOCgpEVF9JTlZBTElEEAASDAoIRFRfRkxP", | |||
| "QVQQARINCglEVF9ET1VCTEUQAhIMCghEVF9JTlQzMhADEgwKCERUX1VJTlQ4", | |||
| "EAQSDAoIRFRfSU5UMTYQBRILCgdEVF9JTlQ4EAYSDQoJRFRfU1RSSU5HEAcS", | |||
| "EAoMRFRfQ09NUExFWDY0EAgSDAoIRFRfSU5UNjQQCRILCgdEVF9CT09MEAoS", | |||
| "DAoIRFRfUUlOVDgQCxINCglEVF9RVUlOVDgQDBINCglEVF9RSU5UMzIQDRIP", | |||
| "CgtEVF9CRkxPQVQxNhAOEg0KCURUX1FJTlQxNhAPEg4KCkRUX1FVSU5UMTYQ", | |||
| "EBINCglEVF9VSU5UMTYQERIRCg1EVF9DT01QTEVYMTI4EBISCwoHRFRfSEFM", | |||
| "RhATEg8KC0RUX1JFU09VUkNFEBQSDgoKRFRfVkFSSUFOVBAVEg0KCURUX1VJ", | |||
| "TlQzMhAWEg0KCURUX1VJTlQ2NBAXEhAKDERUX0ZMT0FUX1JFRhBlEhEKDURU", | |||
| "X0RPVUJMRV9SRUYQZhIQCgxEVF9JTlQzMl9SRUYQZxIQCgxEVF9VSU5UOF9S", | |||
| "RUYQaBIQCgxEVF9JTlQxNl9SRUYQaRIPCgtEVF9JTlQ4X1JFRhBqEhEKDURU", | |||
| "X1NUUklOR19SRUYQaxIUChBEVF9DT01QTEVYNjRfUkVGEGwSEAoMRFRfSU5U", | |||
| "NjRfUkVGEG0SDwoLRFRfQk9PTF9SRUYQbhIQCgxEVF9RSU5UOF9SRUYQbxIR", | |||
| "Cg1EVF9RVUlOVDhfUkVGEHASEQoNRFRfUUlOVDMyX1JFRhBxEhMKD0RUX0JG", | |||
| "TE9BVDE2X1JFRhByEhEKDURUX1FJTlQxNl9SRUYQcxISCg5EVF9RVUlOVDE2", | |||
| "X1JFRhB0EhEKDURUX1VJTlQxNl9SRUYQdRIVChFEVF9DT01QTEVYMTI4X1JF", | |||
| "RhB2Eg8KC0RUX0hBTEZfUkVGEHcSEwoPRFRfUkVTT1VSQ0VfUkVGEHgSEgoO", | |||
| "RFRfVkFSSUFOVF9SRUYQeRIRCg1EVF9VSU5UMzJfUkVGEHoSEQoNRFRfVUlO", | |||
| "VDY0X1JFRhB7QnoKGG9yZy50ZW5zb3JmbG93LmZyYW1ld29ya0ILVHlwZXNQ", | |||
| "cm90b3NQAVpMZ2l0aHViLmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVu", | |||
| "c29yZmxvdy9nby9jb3JlL2ZyYW1ld29yay90eXBlc19nb19wcm90b/gBAWIG", | |||
| "cHJvdG8z")); | |||
| "b3JmbG93IjkKD1NlcmlhbGl6ZWREVHlwZRImCghkYXRhdHlwZRgBIAEoDjIU", | |||
| "LnRlbnNvcmZsb3cuRGF0YVR5cGUqqgYKCERhdGFUeXBlEg4KCkRUX0lOVkFM", | |||
| "SUQQABIMCghEVF9GTE9BVBABEg0KCURUX0RPVUJMRRACEgwKCERUX0lOVDMy", | |||
| "EAMSDAoIRFRfVUlOVDgQBBIMCghEVF9JTlQxNhAFEgsKB0RUX0lOVDgQBhIN", | |||
| "CglEVF9TVFJJTkcQBxIQCgxEVF9DT01QTEVYNjQQCBIMCghEVF9JTlQ2NBAJ", | |||
| "EgsKB0RUX0JPT0wQChIMCghEVF9RSU5UOBALEg0KCURUX1FVSU5UOBAMEg0K", | |||
| "CURUX1FJTlQzMhANEg8KC0RUX0JGTE9BVDE2EA4SDQoJRFRfUUlOVDE2EA8S", | |||
| "DgoKRFRfUVVJTlQxNhAQEg0KCURUX1VJTlQxNhAREhEKDURUX0NPTVBMRVgx", | |||
| "MjgQEhILCgdEVF9IQUxGEBMSDwoLRFRfUkVTT1VSQ0UQFBIOCgpEVF9WQVJJ", | |||
| "QU5UEBUSDQoJRFRfVUlOVDMyEBYSDQoJRFRfVUlOVDY0EBcSEAoMRFRfRkxP", | |||
| "QVRfUkVGEGUSEQoNRFRfRE9VQkxFX1JFRhBmEhAKDERUX0lOVDMyX1JFRhBn", | |||
| "EhAKDERUX1VJTlQ4X1JFRhBoEhAKDERUX0lOVDE2X1JFRhBpEg8KC0RUX0lO", | |||
| "VDhfUkVGEGoSEQoNRFRfU1RSSU5HX1JFRhBrEhQKEERUX0NPTVBMRVg2NF9S", | |||
| "RUYQbBIQCgxEVF9JTlQ2NF9SRUYQbRIPCgtEVF9CT09MX1JFRhBuEhAKDERU", | |||
| "X1FJTlQ4X1JFRhBvEhEKDURUX1FVSU5UOF9SRUYQcBIRCg1EVF9RSU5UMzJf", | |||
| "UkVGEHESEwoPRFRfQkZMT0FUMTZfUkVGEHISEQoNRFRfUUlOVDE2X1JFRhBz", | |||
| "EhIKDkRUX1FVSU5UMTZfUkVGEHQSEQoNRFRfVUlOVDE2X1JFRhB1EhUKEURU", | |||
| "X0NPTVBMRVgxMjhfUkVGEHYSDwoLRFRfSEFMRl9SRUYQdxITCg9EVF9SRVNP", | |||
| "VVJDRV9SRUYQeBISCg5EVF9WQVJJQU5UX1JFRhB5EhEKDURUX1VJTlQzMl9S", | |||
| "RUYQehIRCg1EVF9VSU5UNjRfUkVGEHtCegoYb3JnLnRlbnNvcmZsb3cuZnJh", | |||
| "bWV3b3JrQgtUeXBlc1Byb3Rvc1ABWkxnaXRodWIuY29tL3RlbnNvcmZsb3cv", | |||
| "dGVuc29yZmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvZnJhbWV3b3JrL3R5cGVz", | |||
| "X2dvX3Byb3Rv+AEBYgZwcm90bzM=")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.DataType), }, null, null)); | |||
| new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tensorflow.DataType), }, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SerializedDType), global::Tensorflow.SerializedDType.Parser, new[]{ "Datatype" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| @@ -150,6 +153,201 @@ namespace Tensorflow { | |||
| #endregion | |||
| #region Messages | |||
| /// <summary> | |||
| /// Represents a serialized tf.dtypes.Dtype | |||
| /// </summary> | |||
| public sealed partial class SerializedDType : pb::IMessage<SerializedDType> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<SerializedDType> _parser = new pb::MessageParser<SerializedDType>(() => new SerializedDType()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<SerializedDType> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.TypesReflection.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 SerializedDType() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SerializedDType(SerializedDType other) : this() { | |||
| datatype_ = other.datatype_; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SerializedDType Clone() { | |||
| return new SerializedDType(this); | |||
| } | |||
| /// <summary>Field number for the "datatype" field.</summary> | |||
| public const int DatatypeFieldNumber = 1; | |||
| private global::Tensorflow.DataType datatype_ = global::Tensorflow.DataType.DtInvalid; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.DataType Datatype { | |||
| get { return datatype_; } | |||
| set { | |||
| datatype_ = value; | |||
| } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as SerializedDType); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(SerializedDType other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| } | |||
| if (ReferenceEquals(other, this)) { | |||
| return true; | |||
| } | |||
| if (Datatype != other.Datatype) 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 (Datatype != global::Tensorflow.DataType.DtInvalid) hash ^= Datatype.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 (Datatype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Datatype); | |||
| } | |||
| 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 (Datatype != global::Tensorflow.DataType.DtInvalid) { | |||
| output.WriteRawTag(8); | |||
| output.WriteEnum((int) Datatype); | |||
| } | |||
| 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 (Datatype != global::Tensorflow.DataType.DtInvalid) { | |||
| size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Datatype); | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| return size; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(SerializedDType other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| if (other.Datatype != global::Tensorflow.DataType.DtInvalid) { | |||
| Datatype = other.Datatype; | |||
| } | |||
| _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: { | |||
| Datatype = (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: { | |||
| Datatype = (global::Tensorflow.DataType) input.ReadEnum(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| #endregion | |||
| } | |||
| #endregion Designer generated code | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/variable.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -117,23 +117,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// Protocol buffer representing a Variable. | |||
| /// </summary> | |||
| public sealed partial class VariableDef : pb::IMessage<VariableDef> { | |||
| public sealed partial class VariableDef : pb::IMessage<VariableDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<VariableDef> _parser = new pb::MessageParser<VariableDef>(() => new VariableDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<VariableDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.VariableReflection.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 VariableDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -141,6 +149,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VariableDef(VariableDef other) : this() { | |||
| variableName_ = other.variableName_; | |||
| initialValueName_ = other.initialValueName_; | |||
| @@ -155,6 +164,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VariableDef Clone() { | |||
| return new VariableDef(this); | |||
| } | |||
| @@ -166,6 +176,7 @@ namespace Tensorflow { | |||
| /// Name of the variable tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string VariableName { | |||
| get { return variableName_; } | |||
| set { | |||
| @@ -180,6 +191,7 @@ namespace Tensorflow { | |||
| /// Name of the tensor holding the variable's initial value. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string InitialValueName { | |||
| get { return initialValueName_; } | |||
| set { | |||
| @@ -194,6 +206,7 @@ namespace Tensorflow { | |||
| /// Name of the initializer op. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string InitializerName { | |||
| get { return initializerName_; } | |||
| set { | |||
| @@ -208,6 +221,7 @@ namespace Tensorflow { | |||
| /// Name of the snapshot tensor. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string SnapshotName { | |||
| get { return snapshotName_; } | |||
| set { | |||
| @@ -222,6 +236,7 @@ namespace Tensorflow { | |||
| /// Support for saving variables as slices of a larger variable. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.SaveSliceInfoDef SaveSliceInfoDef { | |||
| get { return saveSliceInfoDef_; } | |||
| set { | |||
| @@ -236,6 +251,7 @@ namespace Tensorflow { | |||
| /// Whether to represent this as a ResourceVariable. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool IsResource { | |||
| get { return isResource_; } | |||
| set { | |||
| @@ -250,6 +266,7 @@ namespace Tensorflow { | |||
| /// Whether this variable should be trained. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Trainable { | |||
| get { return trainable_; } | |||
| set { | |||
| @@ -264,6 +281,7 @@ namespace Tensorflow { | |||
| /// Indicates when a distributed variable will be synced. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.VariableSynchronization Synchronization { | |||
| get { return synchronization_; } | |||
| set { | |||
| @@ -278,6 +296,7 @@ namespace Tensorflow { | |||
| /// Indicates how a distributed variable will be aggregated. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.VariableAggregation Aggregation { | |||
| get { return aggregation_; } | |||
| set { | |||
| @@ -286,11 +305,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as VariableDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(VariableDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -311,6 +332,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (VariableName.Length != 0) hash ^= VariableName.GetHashCode(); | |||
| @@ -329,12 +351,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (VariableName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(VariableName); | |||
| @@ -374,9 +401,57 @@ namespace Tensorflow { | |||
| 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 (VariableName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(VariableName); | |||
| } | |||
| if (InitializerName.Length != 0) { | |||
| output.WriteRawTag(18); | |||
| output.WriteString(InitializerName); | |||
| } | |||
| if (SnapshotName.Length != 0) { | |||
| output.WriteRawTag(26); | |||
| output.WriteString(SnapshotName); | |||
| } | |||
| if (saveSliceInfoDef_ != null) { | |||
| output.WriteRawTag(34); | |||
| output.WriteMessage(SaveSliceInfoDef); | |||
| } | |||
| if (IsResource != false) { | |||
| output.WriteRawTag(40); | |||
| output.WriteBool(IsResource); | |||
| } | |||
| if (InitialValueName.Length != 0) { | |||
| output.WriteRawTag(50); | |||
| output.WriteString(InitialValueName); | |||
| } | |||
| if (Trainable != false) { | |||
| output.WriteRawTag(56); | |||
| output.WriteBool(Trainable); | |||
| } | |||
| if (Synchronization != global::Tensorflow.VariableSynchronization.Auto) { | |||
| output.WriteRawTag(64); | |||
| output.WriteEnum((int) Synchronization); | |||
| } | |||
| if (Aggregation != global::Tensorflow.VariableAggregation.None) { | |||
| output.WriteRawTag(72); | |||
| output.WriteEnum((int) Aggregation); | |||
| } | |||
| 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 (VariableName.Length != 0) { | |||
| @@ -413,6 +488,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(VariableDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -451,7 +527,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -499,27 +579,90 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| VariableName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: { | |||
| InitializerName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 26: { | |||
| SnapshotName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 34: { | |||
| if (saveSliceInfoDef_ == null) { | |||
| SaveSliceInfoDef = new global::Tensorflow.SaveSliceInfoDef(); | |||
| } | |||
| input.ReadMessage(SaveSliceInfoDef); | |||
| break; | |||
| } | |||
| case 40: { | |||
| IsResource = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 50: { | |||
| InitialValueName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 56: { | |||
| Trainable = input.ReadBool(); | |||
| break; | |||
| } | |||
| case 64: { | |||
| Synchronization = (global::Tensorflow.VariableSynchronization) input.ReadEnum(); | |||
| break; | |||
| } | |||
| case 72: { | |||
| Aggregation = (global::Tensorflow.VariableAggregation) input.ReadEnum(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| public sealed partial class SaveSliceInfoDef : pb::IMessage<SaveSliceInfoDef> { | |||
| public sealed partial class SaveSliceInfoDef : pb::IMessage<SaveSliceInfoDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<SaveSliceInfoDef> _parser = new pb::MessageParser<SaveSliceInfoDef>(() => new SaveSliceInfoDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<SaveSliceInfoDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.VariableReflection.Descriptor.MessageTypes[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 SaveSliceInfoDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -527,6 +670,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SaveSliceInfoDef(SaveSliceInfoDef other) : this() { | |||
| fullName_ = other.fullName_; | |||
| fullShape_ = other.fullShape_.Clone(); | |||
| @@ -536,6 +680,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public SaveSliceInfoDef Clone() { | |||
| return new SaveSliceInfoDef(this); | |||
| } | |||
| @@ -547,6 +692,7 @@ namespace Tensorflow { | |||
| /// Name of the full variable of which this is a slice. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public string FullName { | |||
| get { return fullName_; } | |||
| set { | |||
| @@ -563,6 +709,7 @@ namespace Tensorflow { | |||
| /// Shape of the full variable. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> FullShape { | |||
| get { return fullShape_; } | |||
| } | |||
| @@ -576,6 +723,7 @@ namespace Tensorflow { | |||
| /// Offset of this variable into the full variable. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> VarOffset { | |||
| get { return varOffset_; } | |||
| } | |||
| @@ -589,16 +737,19 @@ namespace Tensorflow { | |||
| /// Shape of this variable. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> VarShape { | |||
| get { return varShape_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as SaveSliceInfoDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(SaveSliceInfoDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -614,6 +765,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (FullName.Length != 0) hash ^= FullName.GetHashCode(); | |||
| @@ -627,12 +779,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (FullName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(FullName); | |||
| @@ -643,9 +800,28 @@ namespace Tensorflow { | |||
| 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 (FullName.Length != 0) { | |||
| output.WriteRawTag(10); | |||
| output.WriteString(FullName); | |||
| } | |||
| fullShape_.WriteTo(ref output, _repeated_fullShape_codec); | |||
| varOffset_.WriteTo(ref output, _repeated_varOffset_codec); | |||
| varShape_.WriteTo(ref output, _repeated_varShape_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; | |||
| if (FullName.Length != 0) { | |||
| @@ -661,6 +837,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(SaveSliceInfoDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -675,7 +852,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -703,7 +884,42 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| FullName = input.ReadString(); | |||
| break; | |||
| } | |||
| case 18: | |||
| case 16: { | |||
| fullShape_.AddEntriesFrom(ref input, _repeated_fullShape_codec); | |||
| break; | |||
| } | |||
| case 26: | |||
| case 24: { | |||
| varOffset_.AddEntriesFrom(ref input, _repeated_varOffset_codec); | |||
| break; | |||
| } | |||
| case 34: | |||
| case 32: { | |||
| varShape_.AddEntriesFrom(ref input, _repeated_varShape_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/protobuf/verifier_config.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -46,23 +46,31 @@ namespace Tensorflow { | |||
| /// <summary> | |||
| /// The config for graph verifiers. | |||
| /// </summary> | |||
| public sealed partial class VerifierConfig : pb::IMessage<VerifierConfig> { | |||
| public sealed partial class VerifierConfig : pb::IMessage<VerifierConfig> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<VerifierConfig> _parser = new pb::MessageParser<VerifierConfig>(() => new VerifierConfig()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<VerifierConfig> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.VerifierConfigReflection.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 VerifierConfig() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -70,6 +78,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VerifierConfig(VerifierConfig other) : this() { | |||
| verificationTimeoutInMs_ = other.verificationTimeoutInMs_; | |||
| structureVerifier_ = other.structureVerifier_; | |||
| @@ -77,6 +86,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VerifierConfig Clone() { | |||
| return new VerifierConfig(this); | |||
| } | |||
| @@ -89,6 +99,7 @@ namespace Tensorflow { | |||
| /// verifiers must complete execution within this time. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long VerificationTimeoutInMs { | |||
| get { return verificationTimeoutInMs_; } | |||
| set { | |||
| @@ -103,6 +114,7 @@ namespace Tensorflow { | |||
| /// Perform structural validation on a tensorflow graph. Default is OFF. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public global::Tensorflow.VerifierConfig.Types.Toggle StructureVerifier { | |||
| get { return structureVerifier_; } | |||
| set { | |||
| @@ -111,11 +123,13 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as VerifierConfig); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(VerifierConfig other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -129,6 +143,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (VerificationTimeoutInMs != 0L) hash ^= VerificationTimeoutInMs.GetHashCode(); | |||
| @@ -140,12 +155,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (VerificationTimeoutInMs != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(VerificationTimeoutInMs); | |||
| @@ -157,9 +177,29 @@ namespace Tensorflow { | |||
| 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 (VerificationTimeoutInMs != 0L) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt64(VerificationTimeoutInMs); | |||
| } | |||
| if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) { | |||
| output.WriteRawTag(16); | |||
| output.WriteEnum((int) StructureVerifier); | |||
| } | |||
| 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 (VerificationTimeoutInMs != 0L) { | |||
| @@ -175,6 +215,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(VerifierConfig other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -189,7 +230,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -206,11 +251,36 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| VerificationTimeoutInMs = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| StructureVerifier = (global::Tensorflow.VerifierConfig.Types.Toggle) input.ReadEnum(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| #region Nested types | |||
| /// <summary>Container for nested types declared in the VerifierConfig message type.</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static partial class Types { | |||
| public enum Toggle { | |||
| [pbr::OriginalName("DEFAULT")] Default = 0, | |||
| @@ -2,7 +2,7 @@ | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/core/framework/versions.proto | |||
| // </auto-generated> | |||
| #pragma warning disable 1591, 0612, 3021 | |||
| #pragma warning disable 1591, 0612, 3021, 8981 | |||
| #region Designer generated code | |||
| using pb = global::Google.Protobuf; | |||
| @@ -54,23 +54,31 @@ namespace Tensorflow { | |||
| /// consumer >= min_consumer | |||
| /// consumer not in bad_consumers | |||
| /// </summary> | |||
| public sealed partial class VersionDef : pb::IMessage<VersionDef> { | |||
| public sealed partial class VersionDef : pb::IMessage<VersionDef> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<VersionDef> _parser = new pb::MessageParser<VersionDef>(() => new VersionDef()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<VersionDef> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Tensorflow.VersionsReflection.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 VersionDef() { | |||
| OnConstruction(); | |||
| } | |||
| @@ -78,6 +86,7 @@ namespace Tensorflow { | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VersionDef(VersionDef other) : this() { | |||
| producer_ = other.producer_; | |||
| minConsumer_ = other.minConsumer_; | |||
| @@ -86,6 +95,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public VersionDef Clone() { | |||
| return new VersionDef(this); | |||
| } | |||
| @@ -97,6 +107,7 @@ namespace Tensorflow { | |||
| /// The version of the code that produced this data. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int Producer { | |||
| get { return producer_; } | |||
| set { | |||
| @@ -111,6 +122,7 @@ namespace Tensorflow { | |||
| /// Any consumer below this version is not allowed to consume this data. | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public int MinConsumer { | |||
| get { return minConsumer_; } | |||
| set { | |||
| @@ -127,16 +139,19 @@ namespace Tensorflow { | |||
| /// Specific consumer versions which are disallowed (e.g. due to bugs). | |||
| /// </summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<int> BadConsumers { | |||
| get { return badConsumers_; } | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as VersionDef); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(VersionDef other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| @@ -151,6 +166,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override int GetHashCode() { | |||
| int hash = 1; | |||
| if (Producer != 0) hash ^= Producer.GetHashCode(); | |||
| @@ -163,12 +179,17 @@ namespace Tensorflow { | |||
| } | |||
| [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 (Producer != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(Producer); | |||
| @@ -181,9 +202,30 @@ namespace Tensorflow { | |||
| 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 (Producer != 0) { | |||
| output.WriteRawTag(8); | |||
| output.WriteInt32(Producer); | |||
| } | |||
| if (MinConsumer != 0) { | |||
| output.WriteRawTag(16); | |||
| output.WriteInt32(MinConsumer); | |||
| } | |||
| badConsumers_.WriteTo(ref output, _repeated_badConsumers_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; | |||
| if (Producer != 0) { | |||
| @@ -200,6 +242,7 @@ namespace Tensorflow { | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(VersionDef other) { | |||
| if (other == null) { | |||
| return; | |||
| @@ -215,7 +258,11 @@ namespace Tensorflow { | |||
| } | |||
| [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) { | |||
| @@ -237,7 +284,36 @@ namespace Tensorflow { | |||
| } | |||
| } | |||
| } | |||
| #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: { | |||
| Producer = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 16: { | |||
| MinConsumer = input.ReadInt32(); | |||
| break; | |||
| } | |||
| case 26: | |||
| case 24: { | |||
| badConsumers_.AddEntriesFrom(ref input, _repeated_badConsumers_codec); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| @@ -0,0 +1,360 @@ | |||
| // <auto-generated> | |||
| // Generated by the protocol buffer compiler. DO NOT EDIT! | |||
| // source: tensorflow/compiler/xla/service/cpu/xla_framework.proto | |||
| // </auto-generated> | |||
| #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 Xla.Cpu { | |||
| /// <summary>Holder for reflection information generated from tensorflow/compiler/xla/service/cpu/xla_framework.proto</summary> | |||
| public static partial class XlaFrameworkReflection { | |||
| #region Descriptor | |||
| /// <summary>File descriptor for tensorflow/compiler/xla/service/cpu/xla_framework.proto</summary> | |||
| public static pbr::FileDescriptor Descriptor { | |||
| get { return descriptor; } | |||
| } | |||
| private static pbr::FileDescriptor descriptor; | |||
| static XlaFrameworkReflection() { | |||
| byte[] descriptorData = global::System.Convert.FromBase64String( | |||
| string.Concat( | |||
| "Cjd0ZW5zb3JmbG93L2NvbXBpbGVyL3hsYS9zZXJ2aWNlL2NwdS94bGFfZnJh", | |||
| "bWV3b3JrLnByb3RvEgd4bGEuY3B1InoKGFhsYUZyYW1ld29ya01hcHBpbmdQ", | |||
| "cm90bxISCgZpbnB1dHMYASADKANCAhABEh0KEWZsYXR0ZW5lZF9vdXRwdXRz", | |||
| "GAIgAygDQgIQARISCgZyZXN1bHQYAyABKAM6Ai0xEhcKD291dHB1dF9pc190", | |||
| "dXBsZRgEIAEoCA==")); | |||
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | |||
| new pbr::FileDescriptor[] { }, | |||
| new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { | |||
| new pbr::GeneratedClrTypeInfo(typeof(global::Xla.Cpu.XlaFrameworkMappingProto), global::Xla.Cpu.XlaFrameworkMappingProto.Parser, new[]{ "Inputs", "FlattenedOutputs", "Result", "OutputIsTuple" }, null, null, null, null) | |||
| })); | |||
| } | |||
| #endregion | |||
| } | |||
| #region Messages | |||
| public sealed partial class XlaFrameworkMappingProto : pb::IMessage<XlaFrameworkMappingProto> | |||
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE | |||
| , pb::IBufferMessage | |||
| #endif | |||
| { | |||
| private static readonly pb::MessageParser<XlaFrameworkMappingProto> _parser = new pb::MessageParser<XlaFrameworkMappingProto>(() => new XlaFrameworkMappingProto()); | |||
| private pb::UnknownFieldSet _unknownFields; | |||
| private int _hasBits0; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pb::MessageParser<XlaFrameworkMappingProto> Parser { get { return _parser; } } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public static pbr::MessageDescriptor Descriptor { | |||
| get { return global::Xla.Cpu.XlaFrameworkReflection.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 XlaFrameworkMappingProto() { | |||
| OnConstruction(); | |||
| } | |||
| partial void OnConstruction(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public XlaFrameworkMappingProto(XlaFrameworkMappingProto other) : this() { | |||
| _hasBits0 = other._hasBits0; | |||
| inputs_ = other.inputs_.Clone(); | |||
| flattenedOutputs_ = other.flattenedOutputs_.Clone(); | |||
| result_ = other.result_; | |||
| outputIsTuple_ = other.outputIsTuple_; | |||
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public XlaFrameworkMappingProto Clone() { | |||
| return new XlaFrameworkMappingProto(this); | |||
| } | |||
| /// <summary>Field number for the "inputs" field.</summary> | |||
| public const int InputsFieldNumber = 1; | |||
| private static readonly pb::FieldCodec<long> _repeated_inputs_codec | |||
| = pb::FieldCodec.ForInt64(10); | |||
| private readonly pbc::RepeatedField<long> inputs_ = new pbc::RepeatedField<long>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> Inputs { | |||
| get { return inputs_; } | |||
| } | |||
| /// <summary>Field number for the "flattened_outputs" field.</summary> | |||
| public const int FlattenedOutputsFieldNumber = 2; | |||
| private static readonly pb::FieldCodec<long> _repeated_flattenedOutputs_codec | |||
| = pb::FieldCodec.ForInt64(18); | |||
| private readonly pbc::RepeatedField<long> flattenedOutputs_ = new pbc::RepeatedField<long>(); | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public pbc::RepeatedField<long> FlattenedOutputs { | |||
| get { return flattenedOutputs_; } | |||
| } | |||
| /// <summary>Field number for the "result" field.</summary> | |||
| public const int ResultFieldNumber = 3; | |||
| private readonly static long ResultDefaultValue = -1L; | |||
| private long result_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public long Result { | |||
| get { if ((_hasBits0 & 1) != 0) { return result_; } else { return ResultDefaultValue; } } | |||
| set { | |||
| _hasBits0 |= 1; | |||
| result_ = value; | |||
| } | |||
| } | |||
| /// <summary>Gets whether the "result" field is set</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool HasResult { | |||
| get { return (_hasBits0 & 1) != 0; } | |||
| } | |||
| /// <summary>Clears the value of the "result" field</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearResult() { | |||
| _hasBits0 &= ~1; | |||
| } | |||
| /// <summary>Field number for the "output_is_tuple" field.</summary> | |||
| public const int OutputIsTupleFieldNumber = 4; | |||
| private readonly static bool OutputIsTupleDefaultValue = false; | |||
| private bool outputIsTuple_; | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool OutputIsTuple { | |||
| get { if ((_hasBits0 & 2) != 0) { return outputIsTuple_; } else { return OutputIsTupleDefaultValue; } } | |||
| set { | |||
| _hasBits0 |= 2; | |||
| outputIsTuple_ = value; | |||
| } | |||
| } | |||
| /// <summary>Gets whether the "output_is_tuple" field is set</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool HasOutputIsTuple { | |||
| get { return (_hasBits0 & 2) != 0; } | |||
| } | |||
| /// <summary>Clears the value of the "output_is_tuple" field</summary> | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void ClearOutputIsTuple() { | |||
| _hasBits0 &= ~2; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public override bool Equals(object other) { | |||
| return Equals(other as XlaFrameworkMappingProto); | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public bool Equals(XlaFrameworkMappingProto other) { | |||
| if (ReferenceEquals(other, null)) { | |||
| return false; | |||
| } | |||
| if (ReferenceEquals(other, this)) { | |||
| return true; | |||
| } | |||
| if(!inputs_.Equals(other.inputs_)) return false; | |||
| if(!flattenedOutputs_.Equals(other.flattenedOutputs_)) return false; | |||
| if (Result != other.Result) return false; | |||
| if (OutputIsTuple != other.OutputIsTuple) 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 ^= inputs_.GetHashCode(); | |||
| hash ^= flattenedOutputs_.GetHashCode(); | |||
| if (HasResult) hash ^= Result.GetHashCode(); | |||
| if (HasOutputIsTuple) hash ^= OutputIsTuple.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 | |||
| inputs_.WriteTo(output, _repeated_inputs_codec); | |||
| flattenedOutputs_.WriteTo(output, _repeated_flattenedOutputs_codec); | |||
| if (HasResult) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt64(Result); | |||
| } | |||
| if (HasOutputIsTuple) { | |||
| output.WriteRawTag(32); | |||
| output.WriteBool(OutputIsTuple); | |||
| } | |||
| 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) { | |||
| inputs_.WriteTo(ref output, _repeated_inputs_codec); | |||
| flattenedOutputs_.WriteTo(ref output, _repeated_flattenedOutputs_codec); | |||
| if (HasResult) { | |||
| output.WriteRawTag(24); | |||
| output.WriteInt64(Result); | |||
| } | |||
| if (HasOutputIsTuple) { | |||
| output.WriteRawTag(32); | |||
| output.WriteBool(OutputIsTuple); | |||
| } | |||
| 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 += inputs_.CalculateSize(_repeated_inputs_codec); | |||
| size += flattenedOutputs_.CalculateSize(_repeated_flattenedOutputs_codec); | |||
| if (HasResult) { | |||
| size += 1 + pb::CodedOutputStream.ComputeInt64Size(Result); | |||
| } | |||
| if (HasOutputIsTuple) { | |||
| size += 1 + 1; | |||
| } | |||
| if (_unknownFields != null) { | |||
| size += _unknownFields.CalculateSize(); | |||
| } | |||
| return size; | |||
| } | |||
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |||
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] | |||
| public void MergeFrom(XlaFrameworkMappingProto other) { | |||
| if (other == null) { | |||
| return; | |||
| } | |||
| inputs_.Add(other.inputs_); | |||
| flattenedOutputs_.Add(other.flattenedOutputs_); | |||
| if (other.HasResult) { | |||
| Result = other.Result; | |||
| } | |||
| if (other.HasOutputIsTuple) { | |||
| OutputIsTuple = other.OutputIsTuple; | |||
| } | |||
| _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: | |||
| case 8: { | |||
| inputs_.AddEntriesFrom(input, _repeated_inputs_codec); | |||
| break; | |||
| } | |||
| case 18: | |||
| case 16: { | |||
| flattenedOutputs_.AddEntriesFrom(input, _repeated_flattenedOutputs_codec); | |||
| break; | |||
| } | |||
| case 24: { | |||
| Result = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| OutputIsTuple = 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: | |||
| case 8: { | |||
| inputs_.AddEntriesFrom(ref input, _repeated_inputs_codec); | |||
| break; | |||
| } | |||
| case 18: | |||
| case 16: { | |||
| flattenedOutputs_.AddEntriesFrom(ref input, _repeated_flattenedOutputs_codec); | |||
| break; | |||
| } | |||
| case 24: { | |||
| Result = input.ReadInt64(); | |||
| break; | |||
| } | |||
| case 32: { | |||
| OutputIsTuple = input.ReadBool(); | |||
| break; | |||
| } | |||
| } | |||
| } | |||
| } | |||
| #endif | |||
| } | |||
| #endregion | |||
| } | |||
| #endregion Designer generated code | |||