FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Protobuf/OpDef.cs at master · feelsyt/TensorFlow.NET · GitHub
TensorFlow.NET/src/TensorFlowNET.Core/Protobuf/OpDef.cs at master · feelsyt/TensorFlow.NET · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
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
/
OpDef.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
2156 lines (2026 loc) · 81.6 KB
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Protobuf
/
OpDef.cs
Copy path
File metadata and controls
2156 lines (2026 loc) · 81.6 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/op_def.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/op_def.proto</summary>
public
static
partial
class
OpDefReflection
{
#region Descriptor
/// <summary>File descriptor for tensorflow/core/framework/op_def.proto</summary>
public
static
pbr
::
FileDescriptor
Descriptor
{
get
{
return
descriptor
;
}
}
private
static
pbr
::
FileDescriptor
descriptor
;
static
OpDefReflection
(
)
{
byte
[
]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"CiZ0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL29wX2RlZi5wcm90bxIKdGVu"
,
"c29yZmxvdxoqdGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay9hdHRyX3ZhbHVl"
,
"LnByb3RvGil0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL2Z1bGxfdHlwZS5w"
,
"cm90bxovdGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay9yZXNvdXJjZV9oYW5k"
,
"bGUucHJvdG8aJXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdHlwZXMucHJv"
,
"dG8i8wYKBU9wRGVmEgwKBG5hbWUYASABKAkSKwoJaW5wdXRfYXJnGAIgAygL"
,
"MhgudGVuc29yZmxvdy5PcERlZi5BcmdEZWYSLAoKb3V0cHV0X2FyZxgDIAMo"
,
"CzIYLnRlbnNvcmZsb3cuT3BEZWYuQXJnRGVmEhYKDmNvbnRyb2xfb3V0cHV0"
,
"GBQgAygJEicKBGF0dHIYBCADKAsyGS50ZW5zb3JmbG93Lk9wRGVmLkF0dHJE"
,
"ZWYSLgoLZGVwcmVjYXRpb24YCCABKAsyGS50ZW5zb3JmbG93Lk9wRGVwcmVj"
,
"YXRpb24SDwoHc3VtbWFyeRgFIAEoCRITCgtkZXNjcmlwdGlvbhgGIAEoCRIW"
,
"Cg5pc19jb21tdXRhdGl2ZRgSIAEoCBIUCgxpc19hZ2dyZWdhdGUYECABKAgS"
,
"EwoLaXNfc3RhdGVmdWwYESABKAgSIgoaYWxsb3dzX3VuaW5pdGlhbGl6ZWRf"
,
"aW5wdXQYEyABKAgSJAocaXNfZGlzdHJpYnV0ZWRfY29tbXVuaWNhdGlvbhgV"
,
"IAEoCBqcAgoGQXJnRGVmEgwKBG5hbWUYASABKAkSEwoLZGVzY3JpcHRpb24Y"
,
"AiABKAkSIgoEdHlwZRgDIAEoDjIULnRlbnNvcmZsb3cuRGF0YVR5cGUSEQoJ"
,
"dHlwZV9hdHRyGAQgASgJEhMKC251bWJlcl9hdHRyGAUgASgJEhYKDnR5cGVf"
,
"bGlzdF9hdHRyGAYgASgJEkIKC2hhbmRsZV9kYXRhGAcgAygLMi0udGVuc29y"
,
"Zmxvdy5SZXNvdXJjZUhhbmRsZVByb3RvLkR0eXBlQW5kU2hhcGUSDgoGaXNf"
,
"cmVmGBAgASgIEjcKFmV4cGVyaW1lbnRhbF9mdWxsX3R5cGUYESABKAsyFy50"
,
"ZW5zb3JmbG93LkZ1bGxUeXBlRGVmGr0BCgdBdHRyRGVmEgwKBG5hbWUYASAB"
,
"KAkSDAoEdHlwZRgCIAEoCRIsCg1kZWZhdWx0X3ZhbHVlGAMgASgLMhUudGVu"
,
"c29yZmxvdy5BdHRyVmFsdWUSEwoLZGVzY3JpcHRpb24YBCABKAkSEwoLaGFz"
,
"X21pbmltdW0YBSABKAgSDwoHbWluaW11bRgGIAEoAxItCg5hbGxvd2VkX3Zh"
,
"bHVlcxgHIAEoCzIVLnRlbnNvcmZsb3cuQXR0clZhbHVlIjUKDU9wRGVwcmVj"
,
"YXRpb24SDwoHdmVyc2lvbhgBIAEoBRITCgtleHBsYW5hdGlvbhgCIAEoCSIn"
,
"CgZPcExpc3QSHQoCb3AYASADKAsyES50ZW5zb3JmbG93Lk9wRGVmQnsKGG9y"
,
"Zy50ZW5zb3JmbG93LmZyYW1ld29ya0ILT3BEZWZQcm90b3NQAVpNZ2l0aHVi"
,
"LmNvbS90ZW5zb3JmbG93L3RlbnNvcmZsb3cvdGVuc29yZmxvdy9nby9jb3Jl"
,
"L2ZyYW1ld29yay9vcF9kZWZfZ29fcHJvdG/4AQFiBnByb3RvMw=="
)
)
;
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[
]
{
global
::
Tensorflow
.
AttrValueReflection
.
Descriptor
,
global
::
Tensorflow
.
FullTypeReflection
.
Descriptor
,
global
::
Tensorflow
.
ResourceHandleReflection
.
Descriptor
,
global
::
Tensorflow
.
TypesReflection
.
Descriptor
,
}
,
new
pbr
::
GeneratedClrTypeInfo
(
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
OpDef
)
,
global
::
Tensorflow
.
OpDef
.
Parser
,
new
[
]
{
"Name"
,
"InputArg"
,
"OutputArg"
,
"ControlOutput"
,
"Attr"
,
"Deprecation"
,
"Summary"
,
"Description"
,
"IsCommutative"
,
"IsAggregate"
,
"IsStateful"
,
"AllowsUninitializedInput"
,
"IsDistributedCommunication"
}
,
null
,
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
)
,
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
.
Parser
,
new
[
]
{
"Name"
,
"Description"
,
"Type"
,
"TypeAttr"
,
"NumberAttr"
,
"TypeListAttr"
,
"HandleData"
,
"IsRef"
,
"ExperimentalFullType"
}
,
null
,
null
,
null
,
null
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
)
,
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
.
Parser
,
new
[
]
{
"Name"
,
"Type"
,
"DefaultValue"
,
"Description"
,
"HasMinimum"
,
"Minimum"
,
"AllowedValues"
}
,
null
,
null
,
null
,
null
)
}
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
OpDeprecation
)
,
global
::
Tensorflow
.
OpDeprecation
.
Parser
,
new
[
]
{
"Version"
,
"Explanation"
}
,
null
,
null
,
null
,
null
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
OpList
)
,
global
::
Tensorflow
.
OpList
.
Parser
,
new
[
]
{
"Op"
}
,
null
,
null
,
null
,
null
)
}
)
)
;
}
#endregion
}
#region Messages
/// <summary>
/// Defines an operation. A NodeDef in a GraphDef specifies an Op by
/// using the "op" field which should match the name of a OpDef.
/// LINT.IfChange
/// </summary>
public
sealed
partial
class
OpDef
:
pb
::
IMessage
<
OpDef
>
#if
!
GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
,
pb
::
IBufferMessage
#endif
{
private
static
readonly
pb
::
MessageParser
<
OpDef
>
_parser
=
new
pb
::
MessageParser
<
OpDef
>
(
(
)
=>
new
OpDef
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
static
pb
::
MessageParser
<
OpDef
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
OpDefReflection
.
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
OpDef
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
OpDef
(
OpDef
other
)
:
this
(
)
{
name_
=
other
.
name_
;
inputArg_
=
other
.
inputArg_
.
Clone
(
)
;
outputArg_
=
other
.
outputArg_
.
Clone
(
)
;
controlOutput_
=
other
.
controlOutput_
.
Clone
(
)
;
attr_
=
other
.
attr_
.
Clone
(
)
;
deprecation_
=
other
.
deprecation_
!=
null
?
other
.
deprecation_
.
Clone
(
)
:
null
;
summary_
=
other
.
summary_
;
description_
=
other
.
description_
;
isCommutative_
=
other
.
isCommutative_
;
isAggregate_
=
other
.
isAggregate_
;
isStateful_
=
other
.
isStateful_
;
allowsUninitializedInput_
=
other
.
allowsUninitializedInput_
;
isDistributedCommunication_
=
other
.
isDistributedCommunication_
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
OpDef
Clone
(
)
{
return
new
OpDef
(
this
)
;
}
/// <summary>Field number for the "name" field.</summary>
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
/// <summary>
/// Op names starting with an underscore are reserved for internal use.
/// Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
/// </summary>
[
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 "input_arg" field.</summary>
public
const
int
InputArgFieldNumber
=
2
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
_repeated_inputArg_codec
=
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
inputArg_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
(
)
;
/// <summary>
/// Description of the input(s).
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
InputArg
{
get
{
return
inputArg_
;
}
}
/// <summary>Field number for the "output_arg" field.</summary>
public
const
int
OutputArgFieldNumber
=
3
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
_repeated_outputArg_codec
=
pb
::
FieldCodec
.
ForMessage
(
26
,
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
outputArg_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
(
)
;
/// <summary>
/// Description of the output(s).
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
ArgDef
>
OutputArg
{
get
{
return
outputArg_
;
}
}
/// <summary>Field number for the "control_output" field.</summary>
public
const
int
ControlOutputFieldNumber
=
20
;
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_controlOutput_codec
=
pb
::
FieldCodec
.
ForString
(
162
)
;
private
readonly
pbc
::
RepeatedField
<
string
>
controlOutput_
=
new
pbc
::
RepeatedField
<
string
>
(
)
;
/// <summary>
/// Named control outputs for this operation. Useful only for composite
/// operations (i.e. functions) which want to name different control outputs.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
string
>
ControlOutput
{
get
{
return
controlOutput_
;
}
}
/// <summary>Field number for the "attr" field.</summary>
public
const
int
AttrFieldNumber
=
4
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
>
_repeated_attr_codec
=
pb
::
FieldCodec
.
ForMessage
(
34
,
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
>
attr_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
>
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
OpDef
.
Types
.
AttrDef
>
Attr
{
get
{
return
attr_
;
}
}
/// <summary>Field number for the "deprecation" field.</summary>
public
const
int
DeprecationFieldNumber
=
8
;
private
global
::
Tensorflow
.
OpDeprecation
deprecation_
;
/// <summary>
/// Optional deprecation based on GraphDef versions.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
global
::
Tensorflow
.
OpDeprecation
Deprecation
{
get
{
return
deprecation_
;
}
set
{
deprecation_
=
value
;
}
}
/// <summary>Field number for the "summary" field.</summary>
public
const
int
SummaryFieldNumber
=
5
;
private
string
summary_
=
""
;
/// <summary>
/// One-line human-readable description of what the Op does.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
Summary
{
get
{
return
summary_
;
}
set
{
summary_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "description" field.</summary>
public
const
int
DescriptionFieldNumber
=
6
;
private
string
description_
=
""
;
/// <summary>
/// Additional, longer human-readable description of what the Op does.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
Description
{
get
{
return
description_
;
}
set
{
description_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "is_commutative" field.</summary>
public
const
int
IsCommutativeFieldNumber
=
18
;
private
bool
isCommutative_
;
/// <summary>
/// True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
IsCommutative
{
get
{
return
isCommutative_
;
}
set
{
isCommutative_
=
value
;
}
}
/// <summary>Field number for the "is_aggregate" field.</summary>
public
const
int
IsAggregateFieldNumber
=
16
;
private
bool
isAggregate_
;
/// <summary>
/// If is_aggregate is true, then this operation accepts N >= 2
/// inputs and produces 1 output all of the same type. Should be
/// associative and commutative, and produce output with the same
/// shape as the input. The optimizer may replace an aggregate op
/// taking input from multiple devices with a tree of aggregate ops
/// that aggregate locally within each device (and possibly within
/// groups of nearby devices) before communicating.
/// TODO(josh11b): Implement that optimization.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
IsAggregate
{
get
{
return
isAggregate_
;
}
set
{
isAggregate_
=
value
;
}
}
/// <summary>Field number for the "is_stateful" field.</summary>
public
const
int
IsStatefulFieldNumber
=
17
;
private
bool
isStateful_
;
/// <summary>
/// Ops are marked as stateful if their behavior depends on some state beyond
/// their input tensors (e.g. variable reading op) or if they have
/// a side-effect (e.g. printing or asserting ops). Equivalently, stateless ops
/// must always produce the same output for the same input and have
/// no side-effects.
///
/// By default Ops may be moved between devices. Stateful ops should
/// either not be moved, or should only be moved if that state can also
/// be moved (e.g. via some sort of save / restore).
/// Stateful ops are guaranteed to never be optimized away by Common
/// Subexpression Elimination (CSE).
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
IsStateful
{
get
{
return
isStateful_
;
}
set
{
isStateful_
=
value
;
}
}
/// <summary>Field number for the "allows_uninitialized_input" field.</summary>
public
const
int
AllowsUninitializedInputFieldNumber
=
19
;
private
bool
allowsUninitializedInput_
;
/// <summary>
/// By default, all inputs to an Op must be initialized Tensors. Ops
/// that may initialize tensors for the first time should set this
/// field to true, to allow the Op to take an uninitialized Tensor as
/// input.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
AllowsUninitializedInput
{
get
{
return
allowsUninitializedInput_
;
}
set
{
allowsUninitializedInput_
=
value
;
}
}
/// <summary>Field number for the "is_distributed_communication" field.</summary>
public
const
int
IsDistributedCommunicationFieldNumber
=
21
;
private
bool
isDistributedCommunication_
;
/// <summary>
/// Indicates whether the op implementation uses distributed communication.
/// If True, the op is allowed to return errors for network disconnection and
/// trigger TF network failure handling logics.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
IsDistributedCommunication
{
get
{
return
isDistributedCommunication_
;
}
set
{
isDistributedCommunication_
=
value
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
OpDef
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
Equals
(
OpDef
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
Name
!=
other
.
Name
)
return
false
;
if
(
!
inputArg_
.
Equals
(
other
.
inputArg_
)
)
return
false
;
if
(
!
outputArg_
.
Equals
(
other
.
outputArg_
)
)
return
false
;
if
(
!
controlOutput_
.
Equals
(
other
.
controlOutput_
)
)
return
false
;
if
(
!
attr_
.
Equals
(
other
.
attr_
)
)
return
false
;
if
(
!
object
.
Equals
(
Deprecation
,
other
.
Deprecation
)
)
return
false
;
if
(
Summary
!=
other
.
Summary
)
return
false
;
if
(
Description
!=
other
.
Description
)
return
false
;
if
(
IsCommutative
!=
other
.
IsCommutative
)
return
false
;
if
(
IsAggregate
!=
other
.
IsAggregate
)
return
false
;
if
(
IsStateful
!=
other
.
IsStateful
)
return
false
;
if
(
AllowsUninitializedInput
!=
other
.
AllowsUninitializedInput
)
return
false
;
if
(
IsDistributedCommunication
!=
other
.
IsDistributedCommunication
)
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
(
)
;
hash
^=
inputArg_
.
GetHashCode
(
)
;
hash
^=
outputArg_
.
GetHashCode
(
)
;
hash
^=
controlOutput_
.
GetHashCode
(
)
;
hash
^=
attr_
.
GetHashCode
(
)
;
if
(
deprecation_
!=
null
)
hash
^=
Deprecation
.
GetHashCode
(
)
;
if
(
Summary
.
Length
!=
0
)
hash
^=
Summary
.
GetHashCode
(
)
;
if
(
Description
.
Length
!=
0
)
hash
^=
Description
.
GetHashCode
(
)
;
if
(
IsCommutative
!=
false
)
hash
^=
IsCommutative
.
GetHashCode
(
)
;
if
(
IsAggregate
!=
false
)
hash
^=
IsAggregate
.
GetHashCode
(
)
;
if
(
IsStateful
!=
false
)
hash
^=
IsStateful
.
GetHashCode
(
)
;
if
(
AllowsUninitializedInput
!=
false
)
hash
^=
AllowsUninitializedInput
.
GetHashCode
(
)
;
if
(
IsDistributedCommunication
!=
false
)
hash
^=
IsDistributedCommunication
.
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
)
;
}
inputArg_
.
WriteTo
(
output
,
_repeated_inputArg_codec
)
;
outputArg_
.
WriteTo
(
output
,
_repeated_outputArg_codec
)
;
attr_
.
WriteTo
(
output
,
_repeated_attr_codec
)
;
if
(
Summary
.
Length
!=
0
)
{
output
.
WriteRawTag
(
42
)
;
output
.
WriteString
(
Summary
)
;
}
if
(
Description
.
Length
!=
0
)
{
output
.
WriteRawTag
(
50
)
;
output
.
WriteString
(
Description
)
;
}
if
(
deprecation_
!=
null
)
{
output
.
WriteRawTag
(
66
)
;
output
.
WriteMessage
(
Deprecation
)
;
}
if
(
IsAggregate
!=
false
)
{
output
.
WriteRawTag
(
128
,
1
)
;
output
.
WriteBool
(
IsAggregate
)
;
}
if
(
IsStateful
!=
false
)
{
output
.
WriteRawTag
(
136
,
1
)
;
output
.
WriteBool
(
IsStateful
)
;
}
if
(
IsCommutative
!=
false
)
{
output
.
WriteRawTag
(
144
,
1
)
;
output
.
WriteBool
(
IsCommutative
)
;
}
if
(
AllowsUninitializedInput
!=
false
)
{
output
.
WriteRawTag
(
152
,
1
)
;
output
.
WriteBool
(
AllowsUninitializedInput
)
;
}
controlOutput_
.
WriteTo
(
output
,
_repeated_controlOutput_codec
)
;
if
(
IsDistributedCommunication
!=
false
)
{
output
.
WriteRawTag
(
168
,
1
)
;
output
.
WriteBool
(
IsDistributedCommunication
)
;
}
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
)
;
}
inputArg_
.
WriteTo
(
ref
output
,
_repeated_inputArg_codec
)
;
outputArg_
.
WriteTo
(
ref
output
,
_repeated_outputArg_codec
)
;
attr_
.
WriteTo
(
ref
output
,
_repeated_attr_codec
)
;
if
(
Summary
.
Length
!=
0
)
{
output
.
WriteRawTag
(
42
)
;
output
.
WriteString
(
Summary
)
;
}
if
(
Description
.
Length
!=
0
)
{
output
.
WriteRawTag
(
50
)
;
output
.
WriteString
(
Description
)
;
}
if
(
deprecation_
!=
null
)
{
output
.
WriteRawTag
(
66
)
;
output
.
WriteMessage
(
Deprecation
)
;
}
if
(
IsAggregate
!=
false
)
{
output
.
WriteRawTag
(
128
,
1
)
;
output
.
WriteBool
(
IsAggregate
)
;
}
if
(
IsStateful
!=
false
)
{
output
.
WriteRawTag
(
136
,
1
)
;
output
.
WriteBool
(
IsStateful
)
;
}
if
(
IsCommutative
!=
false
)
{
output
.
WriteRawTag
(
144
,
1
)
;
output
.
WriteBool
(
IsCommutative
)
;
}
if
(
AllowsUninitializedInput
!=
false
)
{
output
.
WriteRawTag
(
152
,
1
)
;
output
.
WriteBool
(
AllowsUninitializedInput
)
;
}
controlOutput_
.
WriteTo
(
ref
output
,
_repeated_controlOutput_codec
)
;
if
(
IsDistributedCommunication
!=
false
)
{
output
.
WriteRawTag
(
168
,
1
)
;
output
.
WriteBool
(
IsDistributedCommunication
)
;
}
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
)
;
}
size
+=
inputArg_
.
CalculateSize
(
_repeated_inputArg_codec
)
;
size
+=
outputArg_
.
CalculateSize
(
_repeated_outputArg_codec
)
;
size
+=
controlOutput_
.
CalculateSize
(
_repeated_controlOutput_codec
)
;
size
+=
attr_
.
CalculateSize
(
_repeated_attr_codec
)
;
if
(
deprecation_
!=
null
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeMessageSize
(
Deprecation
)
;
}
if
(
Summary
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
Summary
)
;
}
if
(
Description
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
Description
)
;
}
if
(
IsCommutative
!=
false
)
{
size
+=
2
+
1
;
}
if
(
IsAggregate
!=
false
)
{
size
+=
2
+
1
;
}
if
(
IsStateful
!=
false
)
{
size
+=
2
+
1
;
}
if
(
AllowsUninitializedInput
!=
false
)
{
size
+=
2
+
1
;
}
if
(
IsDistributedCommunication
!=
false
)
{
size
+=
2
+
1
;
}
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
void
MergeFrom
(
OpDef
other
)
{
if
(
other
==
null
)
{
return
;
}
if
(
other
.
Name
.
Length
!=
0
)
{
Name
=
other
.
Name
;
}
inputArg_
.
Add
(
other
.
inputArg_
)
;
outputArg_
.
Add
(
other
.
outputArg_
)
;
controlOutput_
.
Add
(
other
.
controlOutput_
)
;
attr_
.
Add
(
other
.
attr_
)
;
if
(
other
.
deprecation_
!=
null
)
{
if
(
deprecation_
==
null
)
{
Deprecation
=
new
global
::
Tensorflow
.
OpDeprecation
(
)
;
}
Deprecation
.
MergeFrom
(
other
.
Deprecation
)
;
}
if
(
other
.
Summary
.
Length
!=
0
)
{
Summary
=
other
.
Summary
;
}
if
(
other
.
Description
.
Length
!=
0
)
{
Description
=
other
.
Description
;
}
if
(
other
.
IsCommutative
!=
false
)
{
IsCommutative
=
other
.
IsCommutative
;
}
if
(
other
.
IsAggregate
!=
false
)
{
IsAggregate
=
other
.
IsAggregate
;
}
if
(
other
.
IsStateful
!=
false
)
{
IsStateful
=
other
.
IsStateful
;
}
if
(
other
.
AllowsUninitializedInput
!=
false
)
{
AllowsUninitializedInput
=
other
.
AllowsUninitializedInput
;
}
if
(
other
.
IsDistributedCommunication
!=
false
)
{
IsDistributedCommunication
=
other
.
IsDistributedCommunication
;
}
_unknownFields
=
pb
::
UnknownFieldSet
.
MergeFrom
(
_unknownFields
,
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
void
MergeFrom
(
pb
::
CodedInputStream
input
)
{
#if
!
GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input
.
ReadRawMessage
(
this
)
;
#else
uint
tag
;
while
(
(
tag
=
input
.
ReadTag
(
)
)
!=
0
)
{
switch
(
tag
)
{
default
:
_unknownFields
=
pb
::
UnknownFieldSet
.
MergeFieldFrom
(
_unknownFields
,
input
)
;
break
;
case
10
:
{
Name
=
input
.
ReadString
(
)
;
break
;
}
case
18
:
{
inputArg_
.
AddEntriesFrom
(
input
,
_repeated_inputArg_codec
)
;
break
;
}
case
26
:
{
outputArg_
.
AddEntriesFrom
(
input
,
_repeated_outputArg_codec
)
;
break
;
}
case
34
:
{
attr_
.
AddEntriesFrom
(
input
,
_repeated_attr_codec
)
;
break
;
}
case
42
:
{
Summary
=
input
.
ReadString
(
)
;
break
;
}
case
50
:
{
Description
=
input
.
ReadString
(
)
;
break
;
}
case
66
:
{
if
(
deprecation_
==
null
)
{
Deprecation
=
new
global
::
Tensorflow
.
OpDeprecation
(
)
;
}
input
.
ReadMessage
(
Deprecation
)
;
break
;
}
case
128
:
{
IsAggregate
=
input
.
ReadBool
(
)
;
break
;
}
case
136
:
{
IsStateful
=
input
.
ReadBool
(
)
;
break
;
}
case
144
:
{
IsCommutative
=
input
.
ReadBool
(
)
;
break
;
}
case
152
:
{
AllowsUninitializedInput
=
input
.
ReadBool
(
)
;
break
;
}
case
162
:
{
controlOutput_
.
AddEntriesFrom
(
input
,
_repeated_controlOutput_codec
)
;
break
;
}
case
168
:
{
IsDistributedCommunication
=
input
.
ReadBool
(
)
;
break
;
}
}
}
#endif
}
#if
!
GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
void
pb
::
IBufferMessage
.
InternalMergeFrom
(
ref
pb
::
ParseContext
input
)
{
uint
tag
;
while
(
(
tag
=
input
.
ReadTag
(
)
)
!=
0
)
{
switch
(
tag
)
{
default
:
_unknownFields
=
pb
::
UnknownFieldSet
.
MergeFieldFrom
(
_unknownFields
,
ref
input
)
;
break
;
case
10
:
{
Name
=
input
.
ReadString
(
)
;
break
;
}
case
18
:
{
inputArg_
.
AddEntriesFrom
(
ref
input
,
_repeated_inputArg_codec
)
;
break
;
}
case
26
:
{
outputArg_
.
AddEntriesFrom
(
ref
input
,
_repeated_outputArg_codec
)
;
break
;
}
case
34
:
{
attr_
.
AddEntriesFrom
(
ref
input
,
_repeated_attr_codec
)
;
break
;
}
case
42
:
{
Summary
=
input
.
ReadString
(
)
;
break
;
}
case
50
:
{
Description
=
input
.
ReadString
(
)
;
break
;
}
case
66
:
{
if
(
deprecation_
==
null
)
{
Deprecation
=
new
global
::
Tensorflow
.
OpDeprecation
(
)
;
}
input
.
ReadMessage
(
Deprecation
)
;
break
;
}
case
128
:
{
IsAggregate
=
input
.
ReadBool
(
)
;
break
;
}
case
136
:
{
IsStateful
=
input
.
ReadBool
(
)
;
break
;
}
case
144
:
{
IsCommutative
=
input
.
ReadBool
(
)
;
break
;
}
case
152
:
{
AllowsUninitializedInput
=
input
.
ReadBool
(
)
;
break
;
}
case
162
:
{
controlOutput_
.
AddEntriesFrom
(
ref
input
,
_repeated_controlOutput_codec
)
;
break
;
}
case
168
:
{
IsDistributedCommunication
=
input
.
ReadBool
(
)
;
break
;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the OpDef message type.</summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
static
partial
class
Types
{
/// <summary>
/// For describing inputs and outputs.
/// </summary>
public
sealed
partial
class
ArgDef
:
pb
::
IMessage
<
ArgDef
>
#if
!
GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
,
pb
::
IBufferMessage
#endif
{
private
static
readonly
pb
::
MessageParser
<
ArgDef
>
_parser
=
new
pb
::
MessageParser
<
ArgDef
>
(
(
)
=>
new
ArgDef
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
static
pb
::
MessageParser
<
ArgDef
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
OpDef
.
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
ArgDef
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
ArgDef
(
ArgDef
other
)
:
this
(
)
{
name_
=
other
.
name_
;
description_
=
other
.
description_
;
type_
=
other
.
type_
;
typeAttr_
=
other
.
typeAttr_
;
numberAttr_
=
other
.
numberAttr_
;
typeListAttr_
=
other
.
typeListAttr_
;
handleData_
=
other
.
handleData_
.
Clone
(
)
;
isRef_
=
other
.
isRef_
;
experimentalFullType_
=
other
.
experimentalFullType_
!=
null
?
other
.
experimentalFullType_
.
Clone
(
)
:
null
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
ArgDef
Clone
(
)
{
return
new
ArgDef
(
this
)
;
}
/// <summary>Field number for the "name" field.</summary>
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
/// <summary>
/// Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
/// </summary>
[
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 "description" field.</summary>
public
const
int
DescriptionFieldNumber
=
2
;
private
string
description_
=
""
;
/// <summary>
/// Human readable description.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
Description
{
get
{
return
description_
;
}
set
{
description_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "type" field.</summary>
public
const
int
TypeFieldNumber
=
3
;
private
global
::
Tensorflow
.
DataType
type_
=
global
::
Tensorflow
.
DataType
.
DtInvalid
;
/// <summary>
/// Describes the type of one or more tensors that are accepted/produced
/// by this input/output arg. The only legal combinations are:
/// * For a single tensor: either the "type" field is set or the
/// "type_attr" field is set to the name of an attr with type "type".
/// * For a sequence of tensors with the same type: the "number_attr"
/// field will be set to the name of an attr with type "int", and
/// either the "type" or "type_attr" field will be set as for
/// single tensors.
/// * For a sequence of tensors, the "type_list_attr" field will be set
/// to the name of an attr with type "list(type)".
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
global
::
Tensorflow
.
DataType
Type
{
get
{
return
type_
;
}
set
{
type_
=
value
;
}
}
/// <summary>Field number for the "type_attr" field.</summary>
public
const
int
TypeAttrFieldNumber
=
4
;
private
string
typeAttr_
=
""
;
/// <summary>
/// if specified, attr must have type "type"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
TypeAttr
{
get
{
return
typeAttr_
;
}
set
{
typeAttr_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "number_attr" field.</summary>
public
const
int
NumberAttrFieldNumber
=
5
;
private
string
numberAttr_
=
""
;
/// <summary>
/// if specified, attr must have type "int"
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
NumberAttr
{
get
{
return
numberAttr_
;
}
set
{
numberAttr_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "type_list_attr" field.</summary>
public
const
int
TypeListAttrFieldNumber
=
6
;
private
string
typeListAttr_
=
""
;
/// <summary>
/// If specified, attr must have type "list(type)", and none of
/// type, type_attr, and number_attr may be specified.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
string
TypeListAttr
{
get
{
return
typeListAttr_
;
}
set
{
typeListAttr_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "handle_data" field.</summary>
public
const
int
HandleDataFieldNumber
=
7
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
ResourceHandleProto
.
Types
.
DtypeAndShape
>
_repeated_handleData_codec
=
pb
::
FieldCodec
.
ForMessage
(
58
,
global
::
Tensorflow
.
ResourceHandleProto
.
Types
.
DtypeAndShape
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
ResourceHandleProto
.
Types
.
DtypeAndShape
>
handleData_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
ResourceHandleProto
.
Types
.
DtypeAndShape
>
(
)
;
/// <summary>
/// The handle data for resource inputs.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
ResourceHandleProto
.
Types
.
DtypeAndShape
>
HandleData
{
get
{
return
handleData_
;
}
}
/// <summary>Field number for the "is_ref" field.</summary>
public
const
int
IsRefFieldNumber
=
16
;
private
bool
isRef_
;
/// <summary>
/// For inputs: if true, the inputs are required to be refs.
/// By default, inputs can be either refs or non-refs.
/// For outputs: if true, outputs are refs, otherwise they are not.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
IsRef
{
get
{
return
isRef_
;
}
set
{
isRef_
=
value
;
}
}
/// <summary>Field number for the "experimental_full_type" field.</summary>
public
const
int
ExperimentalFullTypeFieldNumber
=
17
;
private
global
::
Tensorflow
.
FullTypeDef
experimentalFullType_
;
/// <summary>
/// Experimental. Full type declaration for this argument.
/// The full type specification combines type, type_attr, type_list_attr,
/// etc. into a unified representation.
/// This declaration may contain non-concrete types (for example,
/// Tensor<TypeVar<'T'>> is a valid type declaration.
///
/// Note: this is a transient field. The long-term aim is to represent the
/// entire OpDef as a single type: a callable. In that context, this field is
/// just the type of a single argument.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
global
::
Tensorflow
.
FullTypeDef
ExperimentalFullType
{
get
{
return
experimentalFullType_
;
}
set
{
experimentalFullType_
=
value
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
ArgDef
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCode
(
"protoc"
,
null
)
]
public
bool
Equals
(
ArgDef
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
Name
!=
other
.
Name
)
return
false
;
if
(
Description
!=
other
.
Description
)
return
false
;
if
(
Type
!=
other
.
Type
)
return
false
;
if
(
TypeAttr
!=
other
.
TypeAttr
)
return
false
;
if
(
NumberAttr
!=
other
.
NumberAttr
)
return
false
;
if
(
TypeListAttr
!=
other
.
TypeListAttr
)
return
false
;
if
(
!
handleData_
.
Equals
(
other
.
handleData_
)
)
return
false
;
if
(
IsRef
!=
other
.
IsRef
)
return
false
;
if
(
!
object
.
Equals
(
ExperimentalFullType
,
other
.
ExperimentalFullType
)
)
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
(
Description
.
Length
!=
0
)
hash
^=
Description
.
GetHashCode
(
)
;
if
(
Type
!=
global
::
Tensorflow
.
DataType
.
DtInvalid
)
hash
^=
Type
.
GetHashCode
(
)
;
if
(
TypeAttr
.
Length
!=
0
)
hash
^=
TypeAttr
.
GetHashCode
(
)
;
if
(
NumberAttr
.
Length
!=
0
)
hash
^=
NumberAttr
.
GetHashCode
(
)
;
if
(
TypeListAttr
.
Length
!=
0
)
hash
^=
TypeListAttr
.
GetHashCode
(
)
;
hash
^=
handleData_
.
GetHashCode
(
)
;
if
(
IsRef
!=
false
)
hash
^=
IsRef
.
GetHashCode
(
)
;
if
(
experimentalFullType_
!=
null
)
hash
^=
ExperimentalFullType
.
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
View remainder of file in raw view
Footer
© 2026 GitHub, Inc.
Footer navigation
Terms
Privacy
Security
Status
Community
Docs
Contact
You can’t perform that action at this time.
Back
|
FazBrowse Home
|
New Git URL