forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetaGraph.cs
More file actions
2931 lines (2666 loc) · 113 KB
/
MetaGraph.cs
File metadata and controls
2931 lines (2666 loc) · 113 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/meta_graph.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Tensorflow {
/// <summary>Holder for reflection information generated from tensorflow/core/protobuf/meta_graph.proto</summary>
public static partial class MetaGraphReflection {
#region Descriptor
/// <summary>File descriptor for tensorflow/core/protobuf/meta_graph.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MetaGraphReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cil0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvbWV0YV9ncmFwaC5wcm90bxIK",
"dGVuc29yZmxvdxoZZ29vZ2xlL3Byb3RvYnVmL2FueS5wcm90bxoldGVuc29y",
"Zmxvdy9jb3JlL2ZyYW1ld29yay9ncmFwaC5wcm90bxomdGVuc29yZmxvdy9j",
"b3JlL2ZyYW1ld29yay9vcF9kZWYucHJvdG8aLHRlbnNvcmZsb3cvY29yZS9m",
"cmFtZXdvcmsvdGVuc29yX3NoYXBlLnByb3RvGiV0ZW5zb3JmbG93L2NvcmUv",
"ZnJhbWV3b3JrL3R5cGVzLnByb3RvGjF0ZW5zb3JmbG93L2NvcmUvcHJvdG9i",
"dWYvc2F2ZWRfb2JqZWN0X2dyYXBoLnByb3RvGiR0ZW5zb3JmbG93L2NvcmUv",
"cHJvdG9idWYvc2F2ZXIucHJvdG8aJXRlbnNvcmZsb3cvY29yZS9wcm90b2J1",
"Zi9zdHJ1Y3QucHJvdG8imwYKDE1ldGFHcmFwaERlZhI7Cg1tZXRhX2luZm9f",
"ZGVmGAEgASgLMiQudGVuc29yZmxvdy5NZXRhR3JhcGhEZWYuTWV0YUluZm9E",
"ZWYSJwoJZ3JhcGhfZGVmGAIgASgLMhQudGVuc29yZmxvdy5HcmFwaERlZhIn",
"CglzYXZlcl9kZWYYAyABKAsyFC50ZW5zb3JmbG93LlNhdmVyRGVmEkMKDmNv",
"bGxlY3Rpb25fZGVmGAQgAygLMisudGVuc29yZmxvdy5NZXRhR3JhcGhEZWYu",
"Q29sbGVjdGlvbkRlZkVudHJ5EkEKDXNpZ25hdHVyZV9kZWYYBSADKAsyKi50",
"ZW5zb3JmbG93Lk1ldGFHcmFwaERlZi5TaWduYXR1cmVEZWZFbnRyeRIwCg5h",
"c3NldF9maWxlX2RlZhgGIAMoCzIYLnRlbnNvcmZsb3cuQXNzZXRGaWxlRGVm",
"EjYKEG9iamVjdF9ncmFwaF9kZWYYByABKAsyHC50ZW5zb3JmbG93LlNhdmVk",
"T2JqZWN0R3JhcGga6QEKC01ldGFJbmZvRGVmEhoKEm1ldGFfZ3JhcGhfdmVy",
"c2lvbhgBIAEoCRIsChBzdHJpcHBlZF9vcF9saXN0GAIgASgLMhIudGVuc29y",
"Zmxvdy5PcExpc3QSJgoIYW55X2luZm8YAyABKAsyFC5nb29nbGUucHJvdG9i",
"dWYuQW55EgwKBHRhZ3MYBCADKAkSGgoSdGVuc29yZmxvd192ZXJzaW9uGAUg",
"ASgJEh4KFnRlbnNvcmZsb3dfZ2l0X3ZlcnNpb24YBiABKAkSHgoWc3RyaXBw",
"ZWRfZGVmYXVsdF9hdHRycxgHIAEoCBpPChJDb2xsZWN0aW9uRGVmRW50cnkS",
"CwoDa2V5GAEgASgJEigKBXZhbHVlGAIgASgLMhkudGVuc29yZmxvdy5Db2xs",
"ZWN0aW9uRGVmOgI4ARpNChFTaWduYXR1cmVEZWZFbnRyeRILCgNrZXkYASAB",
"KAkSJwoFdmFsdWUYAiABKAsyGC50ZW5zb3JmbG93LlNpZ25hdHVyZURlZjoC",
"OAEi3wMKDUNvbGxlY3Rpb25EZWYSNwoJbm9kZV9saXN0GAEgASgLMiIudGVu",
"c29yZmxvdy5Db2xsZWN0aW9uRGVmLk5vZGVMaXN0SAASOQoKYnl0ZXNfbGlz",
"dBgCIAEoCzIjLnRlbnNvcmZsb3cuQ29sbGVjdGlvbkRlZi5CeXRlc0xpc3RI",
"ABI5CgppbnQ2NF9saXN0GAMgASgLMiMudGVuc29yZmxvdy5Db2xsZWN0aW9u",
"RGVmLkludDY0TGlzdEgAEjkKCmZsb2F0X2xpc3QYBCABKAsyIy50ZW5zb3Jm",
"bG93LkNvbGxlY3Rpb25EZWYuRmxvYXRMaXN0SAASNQoIYW55X2xpc3QYBSAB",
"KAsyIS50ZW5zb3JmbG93LkNvbGxlY3Rpb25EZWYuQW55TGlzdEgAGhkKCE5v",
"ZGVMaXN0Eg0KBXZhbHVlGAEgAygJGhoKCUJ5dGVzTGlzdBINCgV2YWx1ZRgB",
"IAMoDBoeCglJbnQ2NExpc3QSEQoFdmFsdWUYASADKANCAhABGh4KCUZsb2F0",
"TGlzdBIRCgV2YWx1ZRgBIAMoAkICEAEaLgoHQW55TGlzdBIjCgV2YWx1ZRgB",
"IAMoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlCBgoEa2luZCLRAwoKVGVuc29y",
"SW5mbxIOCgRuYW1lGAEgASgJSAASNgoKY29vX3NwYXJzZRgEIAEoCzIgLnRl",
"bnNvcmZsb3cuVGVuc29ySW5mby5Db29TcGFyc2VIABJCChBjb21wb3NpdGVf",
"dGVuc29yGAUgASgLMiYudGVuc29yZmxvdy5UZW5zb3JJbmZvLkNvbXBvc2l0",
"ZVRlbnNvckgAEiMKBWR0eXBlGAIgASgOMhQudGVuc29yZmxvdy5EYXRhVHlw",
"ZRIyCgx0ZW5zb3Jfc2hhcGUYAyABKAsyHC50ZW5zb3JmbG93LlRlbnNvclNo",
"YXBlUHJvdG8aZQoJQ29vU3BhcnNlEhoKEnZhbHVlc190ZW5zb3JfbmFtZRgB",
"IAEoCRIbChNpbmRpY2VzX3RlbnNvcl9uYW1lGAIgASgJEh8KF2RlbnNlX3No",
"YXBlX3RlbnNvcl9uYW1lGAMgASgJGmsKD0NvbXBvc2l0ZVRlbnNvchIsCgl0",
"eXBlX3NwZWMYASABKAsyGS50ZW5zb3JmbG93LlR5cGVTcGVjUHJvdG8SKgoK",
"Y29tcG9uZW50cxgCIAMoCzIWLnRlbnNvcmZsb3cuVGVuc29ySW5mb0IKCghl",
"bmNvZGluZyKgAgoMU2lnbmF0dXJlRGVmEjQKBmlucHV0cxgBIAMoCzIkLnRl",
"bnNvcmZsb3cuU2lnbmF0dXJlRGVmLklucHV0c0VudHJ5EjYKB291dHB1dHMY",
"AiADKAsyJS50ZW5zb3JmbG93LlNpZ25hdHVyZURlZi5PdXRwdXRzRW50cnkS",
"EwoLbWV0aG9kX25hbWUYAyABKAkaRQoLSW5wdXRzRW50cnkSCwoDa2V5GAEg",
"ASgJEiUKBXZhbHVlGAIgASgLMhYudGVuc29yZmxvdy5UZW5zb3JJbmZvOgI4",
"ARpGCgxPdXRwdXRzRW50cnkSCwoDa2V5GAEgASgJEiUKBXZhbHVlGAIgASgL",
"MhYudGVuc29yZmxvdy5UZW5zb3JJbmZvOgI4ASJNCgxBc3NldEZpbGVEZWYS",
"KwoLdGVuc29yX2luZm8YASABKAsyFi50ZW5zb3JmbG93LlRlbnNvckluZm8S",
"EAoIZmlsZW5hbWUYAiABKAlCbgoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3Jr",
"Qg9NZXRhR3JhcGhQcm90b3NQAVo8Z2l0aHViLmNvbS90ZW5zb3JmbG93L3Rl",
"bnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL3Byb3RvYnVm+AEBYgZwcm90",
"bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Tensorflow.GraphReflection.Descriptor, global::Tensorflow.OpDefReflection.Descriptor, global::Tensorflow.TensorShapeReflection.Descriptor, global::Tensorflow.TypesReflection.Descriptor, global::Tensorflow.SavedObjectGraphReflection.Descriptor, global::Tensorflow.SaverReflection.Descriptor, global::Tensorflow.StructReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.MetaGraphDef), global::Tensorflow.MetaGraphDef.Parser, new[]{ "MetaInfoDef", "GraphDef", "SaverDef", "CollectionDef", "SignatureDef", "AssetFileDef", "ObjectGraphDef" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.MetaGraphDef.Types.MetaInfoDef), global::Tensorflow.MetaGraphDef.Types.MetaInfoDef.Parser, new[]{ "MetaGraphVersion", "StrippedOpList", "AnyInfo", "Tags", "TensorflowVersion", "TensorflowGitVersion", "StrippedDefaultAttrs" }, null, null, null, null),
null, null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef), global::Tensorflow.CollectionDef.Parser, new[]{ "NodeList", "BytesList", "Int64List", "FloatList", "AnyList" }, new[]{ "Kind" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef.Types.NodeList), global::Tensorflow.CollectionDef.Types.NodeList.Parser, new[]{ "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef.Types.BytesList), global::Tensorflow.CollectionDef.Types.BytesList.Parser, new[]{ "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef.Types.Int64List), global::Tensorflow.CollectionDef.Types.Int64List.Parser, new[]{ "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef.Types.FloatList), global::Tensorflow.CollectionDef.Types.FloatList.Parser, new[]{ "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CollectionDef.Types.AnyList), global::Tensorflow.CollectionDef.Types.AnyList.Parser, new[]{ "Value" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorInfo), global::Tensorflow.TensorInfo.Parser, new[]{ "Name", "CooSparse", "CompositeTensor", "Dtype", "TensorShape" }, new[]{ "Encoding" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorInfo.Types.CooSparse), global::Tensorflow.TensorInfo.Types.CooSparse.Parser, new[]{ "ValuesTensorName", "IndicesTensorName", "DenseShapeTensorName" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorInfo.Types.CompositeTensor), global::Tensorflow.TensorInfo.Types.CompositeTensor.Parser, new[]{ "TypeSpec", "Components" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SignatureDef), global::Tensorflow.SignatureDef.Parser, new[]{ "Inputs", "Outputs", "MethodName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.AssetFileDef), global::Tensorflow.AssetFileDef.Parser, new[]{ "TensorInfo", "Filename" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// NOTE: This protocol buffer is evolving, and will go through revisions in the
/// coming months.
///
/// Protocol buffer containing the following which are necessary to restart
/// training, run inference. It can be used to serialize/de-serialize memory
/// objects necessary for running computation in a graph when crossing the
/// process boundary. It can be used for long term storage of graphs,
/// cross-language execution of graphs, etc.
/// MetaInfoDef
/// GraphDef
/// SaverDef
/// CollectionDef
/// TensorInfo
/// SignatureDef
/// </summary>
public sealed partial class MetaGraphDef : pb::IMessage<MetaGraphDef> {
private static readonly pb::MessageParser<MetaGraphDef> _parser = new pb::MessageParser<MetaGraphDef>(() => new MetaGraphDef());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MetaGraphDef> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.MetaGraphReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaGraphDef() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaGraphDef(MetaGraphDef other) : this() {
metaInfoDef_ = other.metaInfoDef_ != null ? other.metaInfoDef_.Clone() : null;
graphDef_ = other.graphDef_ != null ? other.graphDef_.Clone() : null;
saverDef_ = other.saverDef_ != null ? other.saverDef_.Clone() : null;
collectionDef_ = other.collectionDef_.Clone();
signatureDef_ = other.signatureDef_.Clone();
assetFileDef_ = other.assetFileDef_.Clone();
objectGraphDef_ = other.objectGraphDef_ != null ? other.objectGraphDef_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaGraphDef Clone() {
return new MetaGraphDef(this);
}
/// <summary>Field number for the "meta_info_def" field.</summary>
public const int MetaInfoDefFieldNumber = 1;
private global::Tensorflow.MetaGraphDef.Types.MetaInfoDef metaInfoDef_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.MetaGraphDef.Types.MetaInfoDef MetaInfoDef {
get { return metaInfoDef_; }
set {
metaInfoDef_ = value;
}
}
/// <summary>Field number for the "graph_def" field.</summary>
public const int GraphDefFieldNumber = 2;
private global::Tensorflow.GraphDef graphDef_;
/// <summary>
/// GraphDef.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.GraphDef GraphDef {
get { return graphDef_; }
set {
graphDef_ = value;
}
}
/// <summary>Field number for the "saver_def" field.</summary>
public const int SaverDefFieldNumber = 3;
private global::Tensorflow.SaverDef saverDef_;
/// <summary>
/// SaverDef.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.SaverDef SaverDef {
get { return saverDef_; }
set {
saverDef_ = value;
}
}
/// <summary>Field number for the "collection_def" field.</summary>
public const int CollectionDefFieldNumber = 4;
private static readonly pbc::MapField<string, global::Tensorflow.CollectionDef>.Codec _map_collectionDef_codec
= new pbc::MapField<string, global::Tensorflow.CollectionDef>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.CollectionDef.Parser), 34);
private readonly pbc::MapField<string, global::Tensorflow.CollectionDef> collectionDef_ = new pbc::MapField<string, global::Tensorflow.CollectionDef>();
/// <summary>
/// collection_def: Map from collection name to collections.
/// See CollectionDef section for details.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Tensorflow.CollectionDef> CollectionDef {
get { return collectionDef_; }
}
/// <summary>Field number for the "signature_def" field.</summary>
public const int SignatureDefFieldNumber = 5;
private static readonly pbc::MapField<string, global::Tensorflow.SignatureDef>.Codec _map_signatureDef_codec
= new pbc::MapField<string, global::Tensorflow.SignatureDef>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.SignatureDef.Parser), 42);
private readonly pbc::MapField<string, global::Tensorflow.SignatureDef> signatureDef_ = new pbc::MapField<string, global::Tensorflow.SignatureDef>();
/// <summary>
/// signature_def: Map from user supplied key for a signature to a single
/// SignatureDef.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::MapField<string, global::Tensorflow.SignatureDef> SignatureDef {
get { return signatureDef_; }
}
/// <summary>Field number for the "asset_file_def" field.</summary>
public const int AssetFileDefFieldNumber = 6;
private static readonly pb::FieldCodec<global::Tensorflow.AssetFileDef> _repeated_assetFileDef_codec
= pb::FieldCodec.ForMessage(50, global::Tensorflow.AssetFileDef.Parser);
private readonly pbc::RepeatedField<global::Tensorflow.AssetFileDef> assetFileDef_ = new pbc::RepeatedField<global::Tensorflow.AssetFileDef>();
/// <summary>
/// Asset file def to be used with the defined graph.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Tensorflow.AssetFileDef> AssetFileDef {
get { return assetFileDef_; }
}
/// <summary>Field number for the "object_graph_def" field.</summary>
public const int ObjectGraphDefFieldNumber = 7;
private global::Tensorflow.SavedObjectGraph objectGraphDef_;
/// <summary>
/// Extra information about the structure of functions and stateful objects.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.SavedObjectGraph ObjectGraphDef {
get { return objectGraphDef_; }
set {
objectGraphDef_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MetaGraphDef);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MetaGraphDef other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MetaInfoDef, other.MetaInfoDef)) return false;
if (!object.Equals(GraphDef, other.GraphDef)) return false;
if (!object.Equals(SaverDef, other.SaverDef)) return false;
if (!CollectionDef.Equals(other.CollectionDef)) return false;
if (!SignatureDef.Equals(other.SignatureDef)) return false;
if(!assetFileDef_.Equals(other.assetFileDef_)) return false;
if (!object.Equals(ObjectGraphDef, other.ObjectGraphDef)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (metaInfoDef_ != null) hash ^= MetaInfoDef.GetHashCode();
if (graphDef_ != null) hash ^= GraphDef.GetHashCode();
if (saverDef_ != null) hash ^= SaverDef.GetHashCode();
hash ^= CollectionDef.GetHashCode();
hash ^= SignatureDef.GetHashCode();
hash ^= assetFileDef_.GetHashCode();
if (objectGraphDef_ != null) hash ^= ObjectGraphDef.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (metaInfoDef_ != null) {
output.WriteRawTag(10);
output.WriteMessage(MetaInfoDef);
}
if (graphDef_ != null) {
output.WriteRawTag(18);
output.WriteMessage(GraphDef);
}
if (saverDef_ != null) {
output.WriteRawTag(26);
output.WriteMessage(SaverDef);
}
collectionDef_.WriteTo(output, _map_collectionDef_codec);
signatureDef_.WriteTo(output, _map_signatureDef_codec);
assetFileDef_.WriteTo(output, _repeated_assetFileDef_codec);
if (objectGraphDef_ != null) {
output.WriteRawTag(58);
output.WriteMessage(ObjectGraphDef);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (metaInfoDef_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetaInfoDef);
}
if (graphDef_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GraphDef);
}
if (saverDef_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SaverDef);
}
size += collectionDef_.CalculateSize(_map_collectionDef_codec);
size += signatureDef_.CalculateSize(_map_signatureDef_codec);
size += assetFileDef_.CalculateSize(_repeated_assetFileDef_codec);
if (objectGraphDef_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ObjectGraphDef);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MetaGraphDef other) {
if (other == null) {
return;
}
if (other.metaInfoDef_ != null) {
if (metaInfoDef_ == null) {
MetaInfoDef = new global::Tensorflow.MetaGraphDef.Types.MetaInfoDef();
}
MetaInfoDef.MergeFrom(other.MetaInfoDef);
}
if (other.graphDef_ != null) {
if (graphDef_ == null) {
GraphDef = new global::Tensorflow.GraphDef();
}
GraphDef.MergeFrom(other.GraphDef);
}
if (other.saverDef_ != null) {
if (saverDef_ == null) {
SaverDef = new global::Tensorflow.SaverDef();
}
SaverDef.MergeFrom(other.SaverDef);
}
collectionDef_.Add(other.collectionDef_);
signatureDef_.Add(other.signatureDef_);
assetFileDef_.Add(other.assetFileDef_);
if (other.objectGraphDef_ != null) {
if (objectGraphDef_ == null) {
ObjectGraphDef = new global::Tensorflow.SavedObjectGraph();
}
ObjectGraphDef.MergeFrom(other.ObjectGraphDef);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (metaInfoDef_ == null) {
MetaInfoDef = new global::Tensorflow.MetaGraphDef.Types.MetaInfoDef();
}
input.ReadMessage(MetaInfoDef);
break;
}
case 18: {
if (graphDef_ == null) {
GraphDef = new global::Tensorflow.GraphDef();
}
input.ReadMessage(GraphDef);
break;
}
case 26: {
if (saverDef_ == null) {
SaverDef = new global::Tensorflow.SaverDef();
}
input.ReadMessage(SaverDef);
break;
}
case 34: {
collectionDef_.AddEntriesFrom(input, _map_collectionDef_codec);
break;
}
case 42: {
signatureDef_.AddEntriesFrom(input, _map_signatureDef_codec);
break;
}
case 50: {
assetFileDef_.AddEntriesFrom(input, _repeated_assetFileDef_codec);
break;
}
case 58: {
if (objectGraphDef_ == null) {
ObjectGraphDef = new global::Tensorflow.SavedObjectGraph();
}
input.ReadMessage(ObjectGraphDef);
break;
}
}
}
}
#region Nested types
/// <summary>Container for nested types declared in the MetaGraphDef message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
/// <summary>
/// Meta information regarding the graph to be exported. To be used by users
/// of this protocol buffer to encode information regarding their meta graph.
/// </summary>
public sealed partial class MetaInfoDef : pb::IMessage<MetaInfoDef> {
private static readonly pb::MessageParser<MetaInfoDef> _parser = new pb::MessageParser<MetaInfoDef>(() => new MetaInfoDef());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<MetaInfoDef> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.MetaGraphDef.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaInfoDef() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaInfoDef(MetaInfoDef other) : this() {
metaGraphVersion_ = other.metaGraphVersion_;
strippedOpList_ = other.strippedOpList_ != null ? other.strippedOpList_.Clone() : null;
anyInfo_ = other.anyInfo_ != null ? other.anyInfo_.Clone() : null;
tags_ = other.tags_.Clone();
tensorflowVersion_ = other.tensorflowVersion_;
tensorflowGitVersion_ = other.tensorflowGitVersion_;
strippedDefaultAttrs_ = other.strippedDefaultAttrs_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MetaInfoDef Clone() {
return new MetaInfoDef(this);
}
/// <summary>Field number for the "meta_graph_version" field.</summary>
public const int MetaGraphVersionFieldNumber = 1;
private string metaGraphVersion_ = "";
/// <summary>
/// User specified Version string. Can be the name of the model and revision,
/// steps this model has been trained to, etc.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string MetaGraphVersion {
get { return metaGraphVersion_; }
set {
metaGraphVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "stripped_op_list" field.</summary>
public const int StrippedOpListFieldNumber = 2;
private global::Tensorflow.OpList strippedOpList_;
/// <summary>
/// A copy of the OpDefs used by the producer of this graph_def.
/// Descriptions and Ops not used in graph_def are stripped out.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.OpList StrippedOpList {
get { return strippedOpList_; }
set {
strippedOpList_ = value;
}
}
/// <summary>Field number for the "any_info" field.</summary>
public const int AnyInfoFieldNumber = 3;
private global::Google.Protobuf.WellKnownTypes.Any anyInfo_;
/// <summary>
/// A serialized protobuf. Can be the time this meta graph is created, or
/// modified, or name of the model.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Google.Protobuf.WellKnownTypes.Any AnyInfo {
get { return anyInfo_; }
set {
anyInfo_ = value;
}
}
/// <summary>Field number for the "tags" field.</summary>
public const int TagsFieldNumber = 4;
private static readonly pb::FieldCodec<string> _repeated_tags_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField<string> tags_ = new pbc::RepeatedField<string>();
/// <summary>
/// User supplied tag(s) on the meta_graph and included graph_def.
///
/// MetaGraphDefs should be tagged with their capabilities or use-cases.
/// Examples: "train", "serve", "gpu", "tpu", etc.
/// These tags enable loaders to access the MetaGraph(s) appropriate for a
/// specific use-case or runtime environment.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<string> Tags {
get { return tags_; }
}
/// <summary>Field number for the "tensorflow_version" field.</summary>
public const int TensorflowVersionFieldNumber = 5;
private string tensorflowVersion_ = "";
/// <summary>
/// The __version__ string of the tensorflow build used to write this graph.
/// This will be populated by the framework, which will overwrite any user
/// supplied value.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string TensorflowVersion {
get { return tensorflowVersion_; }
set {
tensorflowVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "tensorflow_git_version" field.</summary>
public const int TensorflowGitVersionFieldNumber = 6;
private string tensorflowGitVersion_ = "";
/// <summary>
/// The __git_version__ string of the tensorflow build used to write this
/// graph. This will be populated by the framework, which will overwrite any
/// user supplied value.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string TensorflowGitVersion {
get { return tensorflowGitVersion_; }
set {
tensorflowGitVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "stripped_default_attrs" field.</summary>
public const int StrippedDefaultAttrsFieldNumber = 7;
private bool strippedDefaultAttrs_;
/// <summary>
/// A flag to denote whether default-valued attrs have been stripped from
/// the nodes in this graph_def.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool StrippedDefaultAttrs {
get { return strippedDefaultAttrs_; }
set {
strippedDefaultAttrs_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MetaInfoDef);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MetaInfoDef other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (MetaGraphVersion != other.MetaGraphVersion) return false;
if (!object.Equals(StrippedOpList, other.StrippedOpList)) return false;
if (!object.Equals(AnyInfo, other.AnyInfo)) return false;
if(!tags_.Equals(other.tags_)) return false;
if (TensorflowVersion != other.TensorflowVersion) return false;
if (TensorflowGitVersion != other.TensorflowGitVersion) return false;
if (StrippedDefaultAttrs != other.StrippedDefaultAttrs) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (MetaGraphVersion.Length != 0) hash ^= MetaGraphVersion.GetHashCode();
if (strippedOpList_ != null) hash ^= StrippedOpList.GetHashCode();
if (anyInfo_ != null) hash ^= AnyInfo.GetHashCode();
hash ^= tags_.GetHashCode();
if (TensorflowVersion.Length != 0) hash ^= TensorflowVersion.GetHashCode();
if (TensorflowGitVersion.Length != 0) hash ^= TensorflowGitVersion.GetHashCode();
if (StrippedDefaultAttrs != false) hash ^= StrippedDefaultAttrs.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (MetaGraphVersion.Length != 0) {
output.WriteRawTag(10);
output.WriteString(MetaGraphVersion);
}
if (strippedOpList_ != null) {
output.WriteRawTag(18);
output.WriteMessage(StrippedOpList);
}
if (anyInfo_ != null) {
output.WriteRawTag(26);
output.WriteMessage(AnyInfo);
}
tags_.WriteTo(output, _repeated_tags_codec);
if (TensorflowVersion.Length != 0) {
output.WriteRawTag(42);
output.WriteString(TensorflowVersion);
}
if (TensorflowGitVersion.Length != 0) {
output.WriteRawTag(50);
output.WriteString(TensorflowGitVersion);
}
if (StrippedDefaultAttrs != false) {
output.WriteRawTag(56);
output.WriteBool(StrippedDefaultAttrs);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (MetaGraphVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(MetaGraphVersion);
}
if (strippedOpList_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StrippedOpList);
}
if (anyInfo_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyInfo);
}
size += tags_.CalculateSize(_repeated_tags_codec);
if (TensorflowVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(TensorflowVersion);
}
if (TensorflowGitVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(TensorflowGitVersion);
}
if (StrippedDefaultAttrs != false) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(MetaInfoDef other) {
if (other == null) {
return;
}
if (other.MetaGraphVersion.Length != 0) {
MetaGraphVersion = other.MetaGraphVersion;
}
if (other.strippedOpList_ != null) {
if (strippedOpList_ == null) {
StrippedOpList = new global::Tensorflow.OpList();
}
StrippedOpList.MergeFrom(other.StrippedOpList);
}
if (other.anyInfo_ != null) {
if (anyInfo_ == null) {
AnyInfo = new global::Google.Protobuf.WellKnownTypes.Any();
}
AnyInfo.MergeFrom(other.AnyInfo);
}
tags_.Add(other.tags_);
if (other.TensorflowVersion.Length != 0) {
TensorflowVersion = other.TensorflowVersion;
}
if (other.TensorflowGitVersion.Length != 0) {
TensorflowGitVersion = other.TensorflowGitVersion;
}
if (other.StrippedDefaultAttrs != false) {
StrippedDefaultAttrs = other.StrippedDefaultAttrs;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
MetaGraphVersion = input.ReadString();
break;
}
case 18: {
if (strippedOpList_ == null) {
StrippedOpList = new global::Tensorflow.OpList();
}
input.ReadMessage(StrippedOpList);
break;
}
case 26: {
if (anyInfo_ == null) {
AnyInfo = new global::Google.Protobuf.WellKnownTypes.Any();
}
input.ReadMessage(AnyInfo);
break;
}
case 34: {
tags_.AddEntriesFrom(input, _repeated_tags_codec);
break;
}
case 42: {
TensorflowVersion = input.ReadString();
break;
}
case 50: {
TensorflowGitVersion = input.ReadString();
break;
}
case 56: {
StrippedDefaultAttrs = input.ReadBool();
break;
}
}
}
}
}
}
#endregion
}
/// <summary>
/// CollectionDef should cover most collections.
/// To add a user-defined collection, do one of the following:
/// 1. For simple data types, such as string, int, float:
/// tf.add_to_collection("your_collection_name", your_simple_value)
/// strings will be stored as bytes_list.
///
/// 2. For Protobuf types, there are three ways to add them:
/// 1) tf.add_to_collection("your_collection_name",
/// your_proto.SerializeToString())
///
/// collection_def {
/// key: "user_defined_bytes_collection"
/// value {
/// bytes_list {
/// value: "queue_name: \"test_queue\"\n"
/// }
/// }
/// }
///
/// or
///
/// 2) tf.add_to_collection("your_collection_name", str(your_proto))
///
/// collection_def {
/// key: "user_defined_string_collection"
/// value {
/// bytes_list {
/// value: "\n\ntest_queue"
/// }
/// }
/// }
///
/// or
///
/// 3) any_buf = any_pb2.Any()
/// tf.add_to_collection("your_collection_name",
/// any_buf.Pack(your_proto))
///
/// collection_def {
/// key: "user_defined_any_collection"
/// value {
/// any_list {
/// value {
/// type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
/// value: "\n\ntest_queue"
/// }
/// }
/// }
/// }
///
/// 3. For Python objects, implement to_proto() and from_proto(), and register
/// them in the following manner:
/// ops.register_proto_function("your_collection_name",
/// proto_type,
/// to_proto=YourPythonObject.to_proto,
/// from_proto=YourPythonObject.from_proto)
/// These functions will be invoked to serialize and de-serialize the
/// collection. For example,
/// ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
/// proto_type=variable_pb2.VariableDef,
/// to_proto=Variable.to_proto,
/// from_proto=Variable.from_proto)
/// </summary>
public sealed partial class CollectionDef : pb::IMessage<CollectionDef> {
private static readonly pb::MessageParser<CollectionDef> _parser = new pb::MessageParser<CollectionDef>(() => new CollectionDef());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CollectionDef> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.MetaGraphReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CollectionDef() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CollectionDef(CollectionDef other) : this() {
switch (other.KindCase) {
case KindOneofCase.NodeList:
NodeList = other.NodeList.Clone();
break;
case KindOneofCase.BytesList:
BytesList = other.BytesList.Clone();
break;
case KindOneofCase.Int64List:
Int64List = other.Int64List.Clone();
break;
case KindOneofCase.FloatList:
FloatList = other.FloatList.Clone();
break;
case KindOneofCase.AnyList:
AnyList = other.AnyList.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CollectionDef Clone() {
return new CollectionDef(this);
}
/// <summary>Field number for the "node_list" field.</summary>
public const int NodeListFieldNumber = 1;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.CollectionDef.Types.NodeList NodeList {
get { return kindCase_ == KindOneofCase.NodeList ? (global::Tensorflow.CollectionDef.Types.NodeList) kind_ : null; }
set {
kind_ = value;
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.NodeList;
}
}
/// <summary>Field number for the "bytes_list" field.</summary>
public const int BytesListFieldNumber = 2;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.CollectionDef.Types.BytesList BytesList {
get { return kindCase_ == KindOneofCase.BytesList ? (global::Tensorflow.CollectionDef.Types.BytesList) kind_ : null; }
set {
kind_ = value;
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BytesList;
}
}
/// <summary>Field number for the "int64_list" field.</summary>
public const int Int64ListFieldNumber = 3;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.CollectionDef.Types.Int64List Int64List {
get { return kindCase_ == KindOneofCase.Int64List ? (global::Tensorflow.CollectionDef.Types.Int64List) kind_ : null; }
set {
kind_ = value;
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Int64List;
}
}
/// <summary>Field number for the "float_list" field.</summary>
public const int FloatListFieldNumber = 4;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.CollectionDef.Types.FloatList FloatList {
get { return kindCase_ == KindOneofCase.FloatList ? (global::Tensorflow.CollectionDef.Types.FloatList) kind_ : null; }
set {
kind_ = value;
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.FloatList;
}
}
/// <summary>Field number for the "any_list" field.</summary>
public const int AnyListFieldNumber = 5;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.CollectionDef.Types.AnyList AnyList {
get { return kindCase_ == KindOneofCase.AnyList ? (global::Tensorflow.CollectionDef.Types.AnyList) kind_ : null; }
set {
kind_ = value;
kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.AnyList;
}
}
private object kind_;
/// <summary>Enum of possible cases for the "kind" oneof.</summary>
public enum KindOneofCase {
None = 0,
NodeList = 1,
BytesList = 2,
Int64List = 3,
FloatList = 4,
AnyList = 5,
}
private KindOneofCase kindCase_ = KindOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public KindOneofCase KindCase {
get { return kindCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearKind() {
kindCase_ = KindOneofCase.None;
kind_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CollectionDef);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CollectionDef other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(NodeList, other.NodeList)) return false;
if (!object.Equals(BytesList, other.BytesList)) return false;
if (!object.Equals(Int64List, other.Int64List)) return false;
if (!object.Equals(FloatList, other.FloatList)) return false;
if (!object.Equals(AnyList, other.AnyList)) return false;
if (KindCase != other.KindCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {