FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Protobuf/AttrValue.cs at master · feelsyt/TensorFlow.NET · GitHub
feelsyt
/
TensorFlow.NET
Public
forked from
SciSharp/TensorFlow.NET
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Protobuf
/
AttrValue.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
1364 lines (1278 loc) · 50.7 KB
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Protobuf
/
AttrValue.cs
Copy path
File metadata and controls
1364 lines (1278 loc) · 50.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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/framework/attr_value.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/framework/attr_value.proto</summary>
public
static
partial
class
AttrValueReflection
{
#region Descriptor
/// <summary>File descriptor for tensorflow/core/framework/attr_value.proto</summary>
public
static
pbr
::
FileDescriptor
Descriptor
{
get
{
return
descriptor
;
}
}
private
static
pbr
::
FileDescriptor
descriptor
;
static
AttrValueReflection
(
)
{
byte
[
]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"Cip0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2F0dHJfdmFsdWUucHJvdG8S"
,
"CnRlbnNvcmZsb3caJnRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdGVuc29y"
,
"LnByb3RvGix0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3RlbnNvcl9zaGFw"
,
"ZS5wcm90bxoldGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay90eXBlcy5wcm90"
,
"byKmBAoJQXR0clZhbHVlEgsKAXMYAiABKAxIABILCgFpGAMgASgDSAASCwoB"
,
"ZhgEIAEoAkgAEgsKAWIYBSABKAhIABIkCgR0eXBlGAYgASgOMhQudGVuc29y"
,
"Zmxvdy5EYXRhVHlwZUgAEi0KBXNoYXBlGAcgASgLMhwudGVuc29yZmxvdy5U"
,
"ZW5zb3JTaGFwZVByb3RvSAASKQoGdGVuc29yGAggASgLMhcudGVuc29yZmxv"
,
"dy5UZW5zb3JQcm90b0gAEi8KBGxpc3QYASABKAsyHy50ZW5zb3JmbG93LkF0"
,
"dHJWYWx1ZS5MaXN0VmFsdWVIABIoCgRmdW5jGAogASgLMhgudGVuc29yZmxv"
,
"dy5OYW1lQXR0ckxpc3RIABIVCgtwbGFjZWhvbGRlchgJIAEoCUgAGukBCglM"
,
"aXN0VmFsdWUSCQoBcxgCIAMoDBINCgFpGAMgAygDQgIQARINCgFmGAQgAygC"
,
"QgIQARINCgFiGAUgAygIQgIQARImCgR0eXBlGAYgAygOMhQudGVuc29yZmxv"
,
"dy5EYXRhVHlwZUICEAESKwoFc2hhcGUYByADKAsyHC50ZW5zb3JmbG93LlRl"
,
"bnNvclNoYXBlUHJvdG8SJwoGdGVuc29yGAggAygLMhcudGVuc29yZmxvdy5U"
,
"ZW5zb3JQcm90bxImCgRmdW5jGAkgAygLMhgudGVuc29yZmxvdy5OYW1lQXR0"
,
"ckxpc3RCBwoFdmFsdWUikgEKDE5hbWVBdHRyTGlzdBIMCgRuYW1lGAEgASgJ"
,
"EjAKBGF0dHIYAiADKAsyIi50ZW5zb3JmbG93Lk5hbWVBdHRyTGlzdC5BdHRy"
,
"RW50cnkaQgoJQXR0ckVudHJ5EgsKA2tleRgBIAEoCRIkCgV2YWx1ZRgCIAEo"
,
"CzIVLnRlbnNvcmZsb3cuQXR0clZhbHVlOgI4AUKDAQoYb3JnLnRlbnNvcmZs"
,
"b3cuZnJhbWV3b3JrQg9BdHRyVmFsdWVQcm90b3NQAVpRZ2l0aHViLmNvbS90"
,
"ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3JlL2ZyYW1l"
,
"d29yay9hdHRyX3ZhbHVlX2dvX3Byb3Rv+AEBYgZwcm90bzM="
)
)
;
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[
]
{
global
::
Tensorflow
.
TensorReflection
.
Descriptor
,
global
::
Tensorflow
.
TensorShapeReflection
.
Descriptor
,
global
::
Tensorflow
.
TypesReflection
.
Descriptor
,
}
,
new
pbr
::
GeneratedClrTypeInfo
(
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
AttrValue
)
,
global
::
Tensorflow
.
AttrValue
.
Parser
,
new
[
]
{
"S"
,
"I"
,
"F"
,
"B"
,
"Type"
,
"Shape"
,
"Tensor"
,
"List"
,
"Func"
,
"Placeholder"
}
,
new
[
]
{
"Value"
}
,
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
AttrValue
.
Types
.
ListValue
)
,
global
::
Tensorflow
.
AttrValue
.
Types
.
ListValue
.
Parser
,
new
[
]
{
"S"
,
"I"
,
"F"
,
"B"
,
"Type"
,
"Shape"
,
"Tensor"
,
"Func"
}
,
null
,
null
,
null
,
null
)
}
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
NameAttrList
)
,
global
::
Tensorflow
.
NameAttrList
.
Parser
,
new
[
]
{
"Name"
,
"Attr"
}
,
null
,
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
null
,
}
)
}
)
)
;
}
#endregion
}
#region Messages
/// <summary>
/// Protocol buffer representing the value for an attr used to configure an Op.
/// 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
>
#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
(
)
;
}
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
:
S
=
other
.
S
;
break
;
case
ValueOneofCase
.
I
:
I
=
other
.
I
;
break
;
case
ValueOneofCase
.
F
:
F
=
other
.
F
;
break
;
case
ValueOneofCase
.
B
:
B
=
other
.
B
;
break
;
case
ValueOneofCase
.
Type
:
Type
=
other
.
Type
;
break
;
case
ValueOneofCase
.
Shape
:
Shape
=
other
.
Shape
.
Clone
(
)
;
break
;
case
ValueOneofCase
.
Tensor
:
Tensor
=
other
.
Tensor
.
Clone
(
)
;
break
;
case
ValueOneofCase
.
List
:
List
=
other
.
List
.
Clone
(
)
;
break
;
case
ValueOneofCase
.
Func
:
Func
=
other
.
Func
.
Clone
(
)
;
break
;
case
ValueOneofCase
.
Placeholder
:
Placeholder
=
other
.
Placeholder
;
break
;
}
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
AttrValue
Clone
(
)
{
return
new
AttrValue
(
this
)
;
}
/// <summary>Field number for the "s" field.</summary>
public
const
int
SFieldNumber
=
2
;
/// <summary>
/// "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
{
value_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
valueCase_
=
ValueOneofCase
.
S
;
}
}
/// <summary>Field number for the "i" field.</summary>
public
const
int
IFieldNumber
=
3
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
ValueOneofCase
.
I
;
}
}
/// <summary>Field number for the "f" field.</summary>
public
const
int
FFieldNumber
=
4
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
ValueOneofCase
.
F
;
}
}
/// <summary>Field number for the "b" field.</summary>
public
const
int
BFieldNumber
=
5
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
ValueOneofCase
.
B
;
}
}
/// <summary>Field number for the "type" field.</summary>
public
const
int
TypeFieldNumber
=
6
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
ValueOneofCase
.
Type
;
}
}
/// <summary>Field number for the "shape" field.</summary>
public
const
int
ShapeFieldNumber
=
7
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
value
==
null
?
ValueOneofCase
.
None
:
ValueOneofCase
.
Shape
;
}
}
/// <summary>Field number for the "tensor" field.</summary>
public
const
int
TensorFieldNumber
=
8
;
/// <summary>
/// "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
{
value_
=
value
;
valueCase_
=
value
==
null
?
ValueOneofCase
.
None
:
ValueOneofCase
.
Tensor
;
}
}
/// <summary>Field number for the "list" field.</summary>
public
const
int
ListFieldNumber
=
1
;
/// <summary>
/// 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
{
value_
=
value
;
valueCase_
=
value
==
null
?
ValueOneofCase
.
None
:
ValueOneofCase
.
List
;
}
}
/// <summary>Field number for the "func" field.</summary>
public
const
int
FuncFieldNumber
=
10
;
/// <summary>
/// "func" represents a function. func.name is a function's name or
/// a primitive op's name. func.attr.first is the name of an attr
/// defined for that function. func.attr.second is the value for
/// 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
{
value_
=
value
;
valueCase_
=
value
==
null
?
ValueOneofCase
.
None
:
ValueOneofCase
.
Func
;
}
}
/// <summary>Field number for the "placeholder" field.</summary>
public
const
int
PlaceholderFieldNumber
=
9
;
/// <summary>
/// This is a placeholder only used in nodes defined inside a
/// function. It indicates the attr value will be supplied when
/// the function is instantiated. For example, let us suppose a
/// node "N" in function "FN". "N" has an attr "A" with value
/// placeholder = "foo". When FN is instantiated with attr "foo"
/// set to "bar", the instantiated node N's attr A will have been
/// 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
{
value_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
valueCase_
=
ValueOneofCase
.
Placeholder
;
}
}
private
object
value_
;
/// <summary>Enum of possible cases for the "value" oneof.</summary>
public
enum
ValueOneofCase
{
None
=
0
,
S
=
2
,
I
=
3
,
F
=
4
,
B
=
5
,
Type
=
6
,
Shape
=
7
,
Tensor
=
8
,
List
=
1
,
Func
=
10
,
Placeholder
=
9
,
}
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
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
S
!=
other
.
S
)
return
false
;
if
(
I
!=
other
.
I
)
return
false
;
if
(
!
pbc
::
ProtobufEqualityComparers
.
BitwiseSingleEqualityComparer
.
Equals
(
F
,
other
.
F
)
)
return
false
;
if
(
B
!=
other
.
B
)
return
false
;
if
(
Type
!=
other
.
Type
)
return
false
;
if
(
!
object
.
Equals
(
Shape
,
other
.
Shape
)
)
return
false
;
if
(
!
object
.
Equals
(
Tensor
,
other
.
Tensor
)
)
return
false
;
if
(
!
object
.
Equals
(
List
,
other
.
List
)
)
return
false
;
if
(
!
object
.
Equals
(
Func
,
other
.
Func
)
)
return
false
;
if
(
Placeholder
!=
other
.
Placeholder
)
return
false
;
if
(
ValueCase
!=
other
.
ValueCase
)
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
(
valueCase_
==
ValueOneofCase
.
S
)
hash
^=
S
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
I
)
hash
^=
I
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
F
)
hash
^=
pbc
::
ProtobufEqualityComparers
.
BitwiseSingleEqualityComparer
.
GetHashCode
(
F
)
;
if
(
valueCase_
==
ValueOneofCase
.
B
)
hash
^=
B
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
Type
)
hash
^=
Type
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
Shape
)
hash
^=
Shape
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
Tensor
)
hash
^=
Tensor
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
List
)
hash
^=
List
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
Func
)
hash
^=
Func
.
GetHashCode
(
)
;
if
(
valueCase_
==
ValueOneofCase
.
Placeholder
)
hash
^=
Placeholder
.
GetHashCode
(
)
;
hash
^=
(
int
)
valueCase_
;
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
(
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
(
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
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeBytesSize
(
S
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
I
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt64Size
(
I
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
F
)
{
size
+=
1
+
4
;
}
if
(
valueCase_
==
ValueOneofCase
.
B
)
{
size
+=
1
+
1
;
}
if
(
valueCase_
==
ValueOneofCase
.
Type
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeEnumSize
(
(
int
)
Type
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
Shape
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeMessageSize
(
Shape
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
Tensor
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeMessageSize
(
Tensor
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
List
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeMessageSize
(
List
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
Func
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeMessageSize
(
Func
)
;
}
if
(
valueCase_
==
ValueOneofCase
.
Placeholder
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
Placeholder
)
;
}
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
void
MergeFrom
(
AttrValue
other
)
{
if
(
other
==
null
)
{
return
;
}
switch
(
other
.
ValueCase
)
{
case
ValueOneofCase
.
S
:
S
=
other
.
S
;
break
;
case
ValueOneofCase
.
I
:
I
=
other
.
I
;
break
;
case
ValueOneofCase
.
F
:
F
=
other
.
F
;
break
;
case
ValueOneofCase
.
B
:
B
=
other
.
B
;
break
;
case
ValueOneofCase
.
Type
:
Type
=
other
.
Type
;
break
;
case
ValueOneofCase
.
Shape
:
if
(
Shape
==
null
)
{
Shape
=
new
global
::
Tensorflow
.
TensorShapeProto
(
)
;
}
Shape
.
MergeFrom
(
other
.
Shape
)
;
break
;
case
ValueOneofCase
.
Tensor
:
if
(
Tensor
==
null
)
{
Tensor
=
new
global
::
Tensorflow
.
TensorProto
(
)
;
}
Tensor
.
MergeFrom
(
other
.
Tensor
)
;
break
;
case
ValueOneofCase
.
List
:
if
(
List
==
null
)
{
List
=
new
global
::
Tensorflow
.
AttrValue
.
Types
.
ListValue
(
)
;
}
List
.
MergeFrom
(
other
.
List
)
;
break
;
case
ValueOneofCase
.
Func
:
if
(
Func
==
null
)
{
Func
=
new
global
::
Tensorflow
.
NameAttrList
(
)
;
}
Func
.
MergeFrom
(
other
.
Func
)
;
break
;
case
ValueOneofCase
.
Placeholder
:
Placeholder
=
other
.
Placeholder
;
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
)
{
default
:
_unknownFields
=
pb
::
UnknownFieldSet
.
MergeFieldFrom
(
_unknownFields
,
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
}
#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
>
#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
(
)
;
}
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
(
)
;
f_
=
other
.
f_
.
Clone
(
)
;
b_
=
other
.
b_
.
Clone
(
)
;
type_
=
other
.
type_
.
Clone
(
)
;
shape_
=
other
.
shape_
.
Clone
(
)
;
tensor_
=
other
.
tensor_
.
Clone
(
)
;
func_
=
other
.
func_
.
Clone
(
)
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
ListValue
Clone
(
)
{
return
new
ListValue
(
this
)
;
}
/// <summary>Field number for the "s" field.</summary>
public
const
int
SFieldNumber
=
2
;
private
static
readonly
pb
::
FieldCodec
<
pb
::
ByteString
>
_repeated_s_codec
=
pb
::
FieldCodec
.
ForBytes
(
18
)
;
private
readonly
pbc
::
RepeatedField
<
pb
::
ByteString
>
s_
=
new
pbc
::
RepeatedField
<
pb
::
ByteString
>
(
)
;
/// <summary>
/// "list(string)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
pb
::
ByteString
>
S
{
get
{
return
s_
;
}
}
/// <summary>Field number for the "i" field.</summary>
public
const
int
IFieldNumber
=
3
;
private
static
readonly
pb
::
FieldCodec
<
long
>
_repeated_i_codec
=
pb
::
FieldCodec
.
ForInt64
(
26
)
;
private
readonly
pbc
::
RepeatedField
<
long
>
i_
=
new
pbc
::
RepeatedField
<
long
>
(
)
;
/// <summary>
/// "list(int)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
long
>
I
{
get
{
return
i_
;
}
}
/// <summary>Field number for the "f" field.</summary>
public
const
int
FFieldNumber
=
4
;
private
static
readonly
pb
::
FieldCodec
<
float
>
_repeated_f_codec
=
pb
::
FieldCodec
.
ForFloat
(
34
)
;
private
readonly
pbc
::
RepeatedField
<
float
>
f_
=
new
pbc
::
RepeatedField
<
float
>
(
)
;
/// <summary>
/// "list(float)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
float
>
F
{
get
{
return
f_
;
}
}
/// <summary>Field number for the "b" field.</summary>
public
const
int
BFieldNumber
=
5
;
private
static
readonly
pb
::
FieldCodec
<
bool
>
_repeated_b_codec
=
pb
::
FieldCodec
.
ForBool
(
42
)
;
private
readonly
pbc
::
RepeatedField
<
bool
>
b_
=
new
pbc
::
RepeatedField
<
bool
>
(
)
;
/// <summary>
/// "list(bool)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
bool
>
B
{
get
{
return
b_
;
}
}
/// <summary>Field number for the "type" field.</summary>
public
const
int
TypeFieldNumber
=
6
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
DataType
>
_repeated_type_codec
=
pb
::
FieldCodec
.
ForEnum
(
50
,
x
=>
(
int
)
x
,
x
=>
(
global
::
Tensorflow
.
DataType
)
x
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DataType
>
type_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DataType
>
(
)
;
/// <summary>
/// "list(type)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DataType
>
Type
{
get
{
return
type_
;
}
}
/// <summary>Field number for the "shape" field.</summary>
public
const
int
ShapeFieldNumber
=
7
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
TensorShapeProto
>
_repeated_shape_codec
=
pb
::
FieldCodec
.
ForMessage
(
58
,
global
::
Tensorflow
.
TensorShapeProto
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorShapeProto
>
shape_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorShapeProto
>
(
)
;
/// <summary>
/// "list(shape)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorShapeProto
>
Shape
{
get
{
return
shape_
;
}
}
/// <summary>Field number for the "tensor" field.</summary>
public
const
int
TensorFieldNumber
=
8
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
TensorProto
>
_repeated_tensor_codec
=
pb
::
FieldCodec
.
ForMessage
(
66
,
global
::
Tensorflow
.
TensorProto
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorProto
>
tensor_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorProto
>
(
)
;
/// <summary>
/// "list(tensor)"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
TensorProto
>
Tensor
{
get
{
return
tensor_
;
}
}
/// <summary>Field number for the "func" field.</summary>
public
const
int
FuncFieldNumber
=
9
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
NameAttrList
>
_repeated_func_codec
=
pb
::
FieldCodec
.
ForMessage
(
74
,
global
::
Tensorflow
.
NameAttrList
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
NameAttrList
>
func_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
NameAttrList
>
(
)
;
/// <summary>
/// "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
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
!
s_
.
Equals
(
other
.
s_
)
)
return
false
;
if
(
!
i_
.
Equals
(
other
.
i_
)
)
return
false
;
if
(
!
f_
.
Equals
(
other
.
f_
)
)
return
false
;
if
(
!
b_
.
Equals
(
other
.
b_
)
)
return
false
;
if
(
!
type_
.
Equals
(
other
.
type_
)
)
return
false
;
if
(
!
shape_
.
Equals
(
other
.
shape_
)
)
return
false
;
if
(
!
tensor_
.
Equals
(
other
.
tensor_
)
)
return
false
;
if
(
!
func_
.
Equals
(
other
.
func_
)
)
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
^=
s_
.
GetHashCode
(
)
;
hash
^=
i_
.
GetHashCode
(
)
;
hash
^=
f_
.
GetHashCode
(
)
;
hash
^=
b_
.
GetHashCode
(
)
;
hash
^=
type_
.
GetHashCode
(
)
;
hash
^=
shape_
.
GetHashCode
(
)
;
hash
^=
tensor_
.
GetHashCode
(
)
;
hash
^=
func_
.
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
s_
.
WriteTo
(
output
,
_repeated_s_codec
)
;
i_
.
WriteTo
(
output
,
_repeated_i_codec
)
;
f_
.
WriteTo
(
output
,
_repeated_f_codec
)
;
b_
.
WriteTo
(
output
,
_repeated_b_codec
)
;
type_
.
WriteTo
(
output
,
_repeated_type_codec
)
;
shape_
.
WriteTo
(
output
,
_repeated_shape_codec
)
;
tensor_
.
WriteTo
(
output
,
_repeated_tensor_codec
)
;
func_
.
WriteTo
(
output
,
_repeated_func_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
)
{
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
)
;
size
+=
i_
.
CalculateSize
(
_repeated_i_codec
)
;
View remainder of file in raw view
Back
|
FazBrowse Home
|
New Git URL