FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Protobuf/Debug.cs at master · nhirschey/TensorFlow.NET · GitHub
nhirschey
/
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
/
Debug.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
896 lines (811 loc) · 32.2 KB
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Protobuf
/
Debug.cs
Copy path
File metadata and controls
896 lines (811 loc) · 32.2 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
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/debug.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/debug.proto</summary>
public
static
partial
class
DebugReflection
{
#region Descriptor
/// <summary>File descriptor for tensorflow/core/protobuf/debug.proto</summary>
public
static
pbr
::
FileDescriptor
Descriptor
{
get
{
return
descriptor
;
}
}
private
static
pbr
::
FileDescriptor
descriptor
;
static
DebugReflection
(
)
{
byte
[
]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"CiR0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvZGVidWcucHJvdG8SCnRlbnNv"
,
"cmZsb3cijgEKEERlYnVnVGVuc29yV2F0Y2gSEQoJbm9kZV9uYW1lGAEgASgJ"
,
"EhMKC291dHB1dF9zbG90GAIgASgFEhEKCWRlYnVnX29wcxgDIAMoCRISCgpk"
,
"ZWJ1Z191cmxzGAQgAygJEisKI3RvbGVyYXRlX2RlYnVnX29wX2NyZWF0aW9u"
,
"X2ZhaWx1cmVzGAUgASgIIoEBCgxEZWJ1Z09wdGlvbnMSPQoXZGVidWdfdGVu"
,
"c29yX3dhdGNoX29wdHMYBCADKAsyHC50ZW5zb3JmbG93LkRlYnVnVGVuc29y"
,
"V2F0Y2gSEwoLZ2xvYmFsX3N0ZXAYCiABKAMSHQoVcmVzZXRfZGlza19ieXRl"
,
"X3VzYWdlGAsgASgIImoKEkRlYnVnZ2VkU291cmNlRmlsZRIMCgRob3N0GAEg"
,
"ASgJEhEKCWZpbGVfcGF0aBgCIAEoCRIVCg1sYXN0X21vZGlmaWVkGAMgASgD"
,
"Eg0KBWJ5dGVzGAQgASgDEg0KBWxpbmVzGAUgAygJIksKE0RlYnVnZ2VkU291"
,
"cmNlRmlsZXMSNAoMc291cmNlX2ZpbGVzGAEgAygLMh4udGVuc29yZmxvdy5E"
,
"ZWJ1Z2dlZFNvdXJjZUZpbGVCdgoYb3JnLnRlbnNvcmZsb3cuZnJhbWV3b3Jr"
,
"QgtEZWJ1Z1Byb3Rvc1ABWkhnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29y"
,
"Zmxvdy90ZW5zb3JmbG93L2dvL2NvcmUvY29yZV9wcm90b3NfZ29fcHJvdG/4"
,
"AQFiBnByb3RvMw=="
)
)
;
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[
]
{
}
,
new
pbr
::
GeneratedClrTypeInfo
(
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[
]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
DebugTensorWatch
)
,
global
::
Tensorflow
.
DebugTensorWatch
.
Parser
,
new
[
]
{
"NodeName"
,
"OutputSlot"
,
"DebugOps"
,
"DebugUrls"
,
"TolerateDebugOpCreationFailures"
}
,
null
,
null
,
null
,
null
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
DebugOptions
)
,
global
::
Tensorflow
.
DebugOptions
.
Parser
,
new
[
]
{
"DebugTensorWatchOpts"
,
"GlobalStep"
,
"ResetDiskByteUsage"
}
,
null
,
null
,
null
,
null
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
DebuggedSourceFile
)
,
global
::
Tensorflow
.
DebuggedSourceFile
.
Parser
,
new
[
]
{
"Host"
,
"FilePath"
,
"LastModified"
,
"Bytes"
,
"Lines"
}
,
null
,
null
,
null
,
null
)
,
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Tensorflow
.
DebuggedSourceFiles
)
,
global
::
Tensorflow
.
DebuggedSourceFiles
.
Parser
,
new
[
]
{
"SourceFiles"
}
,
null
,
null
,
null
,
null
)
}
)
)
;
}
#endregion
}
#region Messages
/// <summary>
/// Option for watching a node in TensorFlow Debugger (tfdbg).
/// </summary>
public
sealed
partial
class
DebugTensorWatch
:
pb
::
IMessage
<
DebugTensorWatch
>
{
private
static
readonly
pb
::
MessageParser
<
DebugTensorWatch
>
_parser
=
new
pb
::
MessageParser
<
DebugTensorWatch
>
(
(
)
=>
new
DebugTensorWatch
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pb
::
MessageParser
<
DebugTensorWatch
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
DebugReflection
.
Descriptor
.
MessageTypes
[
0
]
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugTensorWatch
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugTensorWatch
(
DebugTensorWatch
other
)
:
this
(
)
{
nodeName_
=
other
.
nodeName_
;
outputSlot_
=
other
.
outputSlot_
;
debugOps_
=
other
.
debugOps_
.
Clone
(
)
;
debugUrls_
=
other
.
debugUrls_
.
Clone
(
)
;
tolerateDebugOpCreationFailures_
=
other
.
tolerateDebugOpCreationFailures_
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugTensorWatch
Clone
(
)
{
return
new
DebugTensorWatch
(
this
)
;
}
/// <summary>Field number for the "node_name" field.</summary>
public
const
int
NodeNameFieldNumber
=
1
;
private
string
nodeName_
=
""
;
/// <summary>
/// Name of the node to watch.
/// Use "*" for wildcard. But note: currently, regex is not supported in
/// general.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
string
NodeName
{
get
{
return
nodeName_
;
}
set
{
nodeName_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "output_slot" field.</summary>
public
const
int
OutputSlotFieldNumber
=
2
;
private
int
outputSlot_
;
/// <summary>
/// Output slot to watch.
/// The semantics of output_slot == -1 is that all outputs of the node
/// will be watched (i.e., a wildcard).
/// Other negative values of output_slot are invalid and will lead to
/// errors currently.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
int
OutputSlot
{
get
{
return
outputSlot_
;
}
set
{
outputSlot_
=
value
;
}
}
/// <summary>Field number for the "debug_ops" field.</summary>
public
const
int
DebugOpsFieldNumber
=
3
;
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_debugOps_codec
=
pb
::
FieldCodec
.
ForString
(
26
)
;
private
readonly
pbc
::
RepeatedField
<
string
>
debugOps_
=
new
pbc
::
RepeatedField
<
string
>
(
)
;
/// <summary>
/// Name(s) of the debugging op(s).
/// One or more than one probes on a tensor.
/// e.g., {"DebugIdentity", "DebugNanCount"}
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
pbc
::
RepeatedField
<
string
>
DebugOps
{
get
{
return
debugOps_
;
}
}
/// <summary>Field number for the "debug_urls" field.</summary>
public
const
int
DebugUrlsFieldNumber
=
4
;
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_debugUrls_codec
=
pb
::
FieldCodec
.
ForString
(
34
)
;
private
readonly
pbc
::
RepeatedField
<
string
>
debugUrls_
=
new
pbc
::
RepeatedField
<
string
>
(
)
;
/// <summary>
/// URL(s) for debug targets(s).
///
/// Supported URL formats are:
/// - file:///foo/tfdbg_dump: Writes out Event content to file
/// /foo/tfdbg_dump. Assumes all directories can be created if they don't
/// already exist.
/// - grpc://localhost:11011: Sends an RPC request to an EventListener
/// service running at localhost:11011 with the event.
/// - memcbk:///event_key: Routes tensors to clients using the
/// callback registered with the DebugCallbackRegistry for event_key.
///
/// Each debug op listed in debug_ops will publish its output tensor (debug
/// signal) to all URLs in debug_urls.
///
/// N.B. Session::Run() supports concurrent invocations of the same inputs
/// (feed keys), outputs and target nodes. If such concurrent invocations
/// are to be debugged, the callers of Session::Run() must use distinct
/// debug_urls to make sure that the streamed or dumped events do not overlap
/// among the invocations.
/// TODO(cais): More visible documentation of this in g3docs.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
pbc
::
RepeatedField
<
string
>
DebugUrls
{
get
{
return
debugUrls_
;
}
}
/// <summary>Field number for the "tolerate_debug_op_creation_failures" field.</summary>
public
const
int
TolerateDebugOpCreationFailuresFieldNumber
=
5
;
private
bool
tolerateDebugOpCreationFailures_
;
/// <summary>
/// Do not error out if debug op creation fails (e.g., due to dtype
/// incompatibility). Instead, just log the failure.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
TolerateDebugOpCreationFailures
{
get
{
return
tolerateDebugOpCreationFailures_
;
}
set
{
tolerateDebugOpCreationFailures_
=
value
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
DebugTensorWatch
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
Equals
(
DebugTensorWatch
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
NodeName
!=
other
.
NodeName
)
return
false
;
if
(
OutputSlot
!=
other
.
OutputSlot
)
return
false
;
if
(
!
debugOps_
.
Equals
(
other
.
debugOps_
)
)
return
false
;
if
(
!
debugUrls_
.
Equals
(
other
.
debugUrls_
)
)
return
false
;
if
(
TolerateDebugOpCreationFailures
!=
other
.
TolerateDebugOpCreationFailures
)
return
false
;
return
Equals
(
_unknownFields
,
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
int
GetHashCode
(
)
{
int
hash
=
1
;
if
(
NodeName
.
Length
!=
0
)
hash
^=
NodeName
.
GetHashCode
(
)
;
if
(
OutputSlot
!=
0
)
hash
^=
OutputSlot
.
GetHashCode
(
)
;
hash
^=
debugOps_
.
GetHashCode
(
)
;
hash
^=
debugUrls_
.
GetHashCode
(
)
;
if
(
TolerateDebugOpCreationFailures
!=
false
)
hash
^=
TolerateDebugOpCreationFailures
.
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
(
NodeName
.
Length
!=
0
)
{
output
.
WriteRawTag
(
10
)
;
output
.
WriteString
(
NodeName
)
;
}
if
(
OutputSlot
!=
0
)
{
output
.
WriteRawTag
(
16
)
;
output
.
WriteInt32
(
OutputSlot
)
;
}
debugOps_
.
WriteTo
(
output
,
_repeated_debugOps_codec
)
;
debugUrls_
.
WriteTo
(
output
,
_repeated_debugUrls_codec
)
;
if
(
TolerateDebugOpCreationFailures
!=
false
)
{
output
.
WriteRawTag
(
40
)
;
output
.
WriteBool
(
TolerateDebugOpCreationFailures
)
;
}
if
(
_unknownFields
!=
null
)
{
_unknownFields
.
WriteTo
(
output
)
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
int
CalculateSize
(
)
{
int
size
=
0
;
if
(
NodeName
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
NodeName
)
;
}
if
(
OutputSlot
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt32Size
(
OutputSlot
)
;
}
size
+=
debugOps_
.
CalculateSize
(
_repeated_debugOps_codec
)
;
size
+=
debugUrls_
.
CalculateSize
(
_repeated_debugUrls_codec
)
;
if
(
TolerateDebugOpCreationFailures
!=
false
)
{
size
+=
1
+
1
;
}
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
void
MergeFrom
(
DebugTensorWatch
other
)
{
if
(
other
==
null
)
{
return
;
}
if
(
other
.
NodeName
.
Length
!=
0
)
{
NodeName
=
other
.
NodeName
;
}
if
(
other
.
OutputSlot
!=
0
)
{
OutputSlot
=
other
.
OutputSlot
;
}
debugOps_
.
Add
(
other
.
debugOps_
)
;
debugUrls_
.
Add
(
other
.
debugUrls_
)
;
if
(
other
.
TolerateDebugOpCreationFailures
!=
false
)
{
TolerateDebugOpCreationFailures
=
other
.
TolerateDebugOpCreationFailures
;
}
_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
:
{
NodeName
=
input
.
ReadString
(
)
;
break
;
}
case
16
:
{
OutputSlot
=
input
.
ReadInt32
(
)
;
break
;
}
case
26
:
{
debugOps_
.
AddEntriesFrom
(
input
,
_repeated_debugOps_codec
)
;
break
;
}
case
34
:
{
debugUrls_
.
AddEntriesFrom
(
input
,
_repeated_debugUrls_codec
)
;
break
;
}
case
40
:
{
TolerateDebugOpCreationFailures
=
input
.
ReadBool
(
)
;
break
;
}
}
}
}
}
/// <summary>
/// Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
/// </summary>
public
sealed
partial
class
DebugOptions
:
pb
::
IMessage
<
DebugOptions
>
{
private
static
readonly
pb
::
MessageParser
<
DebugOptions
>
_parser
=
new
pb
::
MessageParser
<
DebugOptions
>
(
(
)
=>
new
DebugOptions
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pb
::
MessageParser
<
DebugOptions
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
DebugReflection
.
Descriptor
.
MessageTypes
[
1
]
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugOptions
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugOptions
(
DebugOptions
other
)
:
this
(
)
{
debugTensorWatchOpts_
=
other
.
debugTensorWatchOpts_
.
Clone
(
)
;
globalStep_
=
other
.
globalStep_
;
resetDiskByteUsage_
=
other
.
resetDiskByteUsage_
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebugOptions
Clone
(
)
{
return
new
DebugOptions
(
this
)
;
}
/// <summary>Field number for the "debug_tensor_watch_opts" field.</summary>
public
const
int
DebugTensorWatchOptsFieldNumber
=
4
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
DebugTensorWatch
>
_repeated_debugTensorWatchOpts_codec
=
pb
::
FieldCodec
.
ForMessage
(
34
,
global
::
Tensorflow
.
DebugTensorWatch
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebugTensorWatch
>
debugTensorWatchOpts_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebugTensorWatch
>
(
)
;
/// <summary>
/// Debugging options
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebugTensorWatch
>
DebugTensorWatchOpts
{
get
{
return
debugTensorWatchOpts_
;
}
}
/// <summary>Field number for the "global_step" field.</summary>
public
const
int
GlobalStepFieldNumber
=
10
;
private
long
globalStep_
;
/// <summary>
/// Caller-specified global step count.
/// Note that this is distinct from the session run count and the executor
/// step count.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
long
GlobalStep
{
get
{
return
globalStep_
;
}
set
{
globalStep_
=
value
;
}
}
/// <summary>Field number for the "reset_disk_byte_usage" field.</summary>
public
const
int
ResetDiskByteUsageFieldNumber
=
11
;
private
bool
resetDiskByteUsage_
;
/// <summary>
/// Whether the total disk usage of tfdbg is to be reset to zero
/// in this Session.run call. This is used by wrappers and hooks
/// such as the local CLI ones to indicate that the dumped tensors
/// are cleaned up from the disk after each Session.run.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
ResetDiskByteUsage
{
get
{
return
resetDiskByteUsage_
;
}
set
{
resetDiskByteUsage_
=
value
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
DebugOptions
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
Equals
(
DebugOptions
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
!
debugTensorWatchOpts_
.
Equals
(
other
.
debugTensorWatchOpts_
)
)
return
false
;
if
(
GlobalStep
!=
other
.
GlobalStep
)
return
false
;
if
(
ResetDiskByteUsage
!=
other
.
ResetDiskByteUsage
)
return
false
;
return
Equals
(
_unknownFields
,
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
int
GetHashCode
(
)
{
int
hash
=
1
;
hash
^=
debugTensorWatchOpts_
.
GetHashCode
(
)
;
if
(
GlobalStep
!=
0L
)
hash
^=
GlobalStep
.
GetHashCode
(
)
;
if
(
ResetDiskByteUsage
!=
false
)
hash
^=
ResetDiskByteUsage
.
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
)
{
debugTensorWatchOpts_
.
WriteTo
(
output
,
_repeated_debugTensorWatchOpts_codec
)
;
if
(
GlobalStep
!=
0L
)
{
output
.
WriteRawTag
(
80
)
;
output
.
WriteInt64
(
GlobalStep
)
;
}
if
(
ResetDiskByteUsage
!=
false
)
{
output
.
WriteRawTag
(
88
)
;
output
.
WriteBool
(
ResetDiskByteUsage
)
;
}
if
(
_unknownFields
!=
null
)
{
_unknownFields
.
WriteTo
(
output
)
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
int
CalculateSize
(
)
{
int
size
=
0
;
size
+=
debugTensorWatchOpts_
.
CalculateSize
(
_repeated_debugTensorWatchOpts_codec
)
;
if
(
GlobalStep
!=
0L
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt64Size
(
GlobalStep
)
;
}
if
(
ResetDiskByteUsage
!=
false
)
{
size
+=
1
+
1
;
}
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
void
MergeFrom
(
DebugOptions
other
)
{
if
(
other
==
null
)
{
return
;
}
debugTensorWatchOpts_
.
Add
(
other
.
debugTensorWatchOpts_
)
;
if
(
other
.
GlobalStep
!=
0L
)
{
GlobalStep
=
other
.
GlobalStep
;
}
if
(
other
.
ResetDiskByteUsage
!=
false
)
{
ResetDiskByteUsage
=
other
.
ResetDiskByteUsage
;
}
_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
34
:
{
debugTensorWatchOpts_
.
AddEntriesFrom
(
input
,
_repeated_debugTensorWatchOpts_codec
)
;
break
;
}
case
80
:
{
GlobalStep
=
input
.
ReadInt64
(
)
;
break
;
}
case
88
:
{
ResetDiskByteUsage
=
input
.
ReadBool
(
)
;
break
;
}
}
}
}
}
public
sealed
partial
class
DebuggedSourceFile
:
pb
::
IMessage
<
DebuggedSourceFile
>
{
private
static
readonly
pb
::
MessageParser
<
DebuggedSourceFile
>
_parser
=
new
pb
::
MessageParser
<
DebuggedSourceFile
>
(
(
)
=>
new
DebuggedSourceFile
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pb
::
MessageParser
<
DebuggedSourceFile
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
DebugReflection
.
Descriptor
.
MessageTypes
[
2
]
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFile
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFile
(
DebuggedSourceFile
other
)
:
this
(
)
{
host_
=
other
.
host_
;
filePath_
=
other
.
filePath_
;
lastModified_
=
other
.
lastModified_
;
bytes_
=
other
.
bytes_
;
lines_
=
other
.
lines_
.
Clone
(
)
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFile
Clone
(
)
{
return
new
DebuggedSourceFile
(
this
)
;
}
/// <summary>Field number for the "host" field.</summary>
public
const
int
HostFieldNumber
=
1
;
private
string
host_
=
""
;
/// <summary>
/// The host name on which a source code file is located.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
string
Host
{
get
{
return
host_
;
}
set
{
host_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "file_path" field.</summary>
public
const
int
FilePathFieldNumber
=
2
;
private
string
filePath_
=
""
;
/// <summary>
/// Path to the source code file.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
string
FilePath
{
get
{
return
filePath_
;
}
set
{
filePath_
=
pb
::
ProtoPreconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
/// <summary>Field number for the "last_modified" field.</summary>
public
const
int
LastModifiedFieldNumber
=
3
;
private
long
lastModified_
;
/// <summary>
/// The timestamp at which the source code file is last modified.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
long
LastModified
{
get
{
return
lastModified_
;
}
set
{
lastModified_
=
value
;
}
}
/// <summary>Field number for the "bytes" field.</summary>
public
const
int
BytesFieldNumber
=
4
;
private
long
bytes_
;
/// <summary>
/// Byte size of the file.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
long
Bytes
{
get
{
return
bytes_
;
}
set
{
bytes_
=
value
;
}
}
/// <summary>Field number for the "lines" field.</summary>
public
const
int
LinesFieldNumber
=
5
;
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_lines_codec
=
pb
::
FieldCodec
.
ForString
(
42
)
;
private
readonly
pbc
::
RepeatedField
<
string
>
lines_
=
new
pbc
::
RepeatedField
<
string
>
(
)
;
/// <summary>
/// Line-by-line content of the source code file.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
pbc
::
RepeatedField
<
string
>
Lines
{
get
{
return
lines_
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
DebuggedSourceFile
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
Equals
(
DebuggedSourceFile
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
Host
!=
other
.
Host
)
return
false
;
if
(
FilePath
!=
other
.
FilePath
)
return
false
;
if
(
LastModified
!=
other
.
LastModified
)
return
false
;
if
(
Bytes
!=
other
.
Bytes
)
return
false
;
if
(
!
lines_
.
Equals
(
other
.
lines_
)
)
return
false
;
return
Equals
(
_unknownFields
,
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
int
GetHashCode
(
)
{
int
hash
=
1
;
if
(
Host
.
Length
!=
0
)
hash
^=
Host
.
GetHashCode
(
)
;
if
(
FilePath
.
Length
!=
0
)
hash
^=
FilePath
.
GetHashCode
(
)
;
if
(
LastModified
!=
0L
)
hash
^=
LastModified
.
GetHashCode
(
)
;
if
(
Bytes
!=
0L
)
hash
^=
Bytes
.
GetHashCode
(
)
;
hash
^=
lines_
.
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
(
Host
.
Length
!=
0
)
{
output
.
WriteRawTag
(
10
)
;
output
.
WriteString
(
Host
)
;
}
if
(
FilePath
.
Length
!=
0
)
{
output
.
WriteRawTag
(
18
)
;
output
.
WriteString
(
FilePath
)
;
}
if
(
LastModified
!=
0L
)
{
output
.
WriteRawTag
(
24
)
;
output
.
WriteInt64
(
LastModified
)
;
}
if
(
Bytes
!=
0L
)
{
output
.
WriteRawTag
(
32
)
;
output
.
WriteInt64
(
Bytes
)
;
}
lines_
.
WriteTo
(
output
,
_repeated_lines_codec
)
;
if
(
_unknownFields
!=
null
)
{
_unknownFields
.
WriteTo
(
output
)
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
int
CalculateSize
(
)
{
int
size
=
0
;
if
(
Host
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
Host
)
;
}
if
(
FilePath
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
FilePath
)
;
}
if
(
LastModified
!=
0L
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt64Size
(
LastModified
)
;
}
if
(
Bytes
!=
0L
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt64Size
(
Bytes
)
;
}
size
+=
lines_
.
CalculateSize
(
_repeated_lines_codec
)
;
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
void
MergeFrom
(
DebuggedSourceFile
other
)
{
if
(
other
==
null
)
{
return
;
}
if
(
other
.
Host
.
Length
!=
0
)
{
Host
=
other
.
Host
;
}
if
(
other
.
FilePath
.
Length
!=
0
)
{
FilePath
=
other
.
FilePath
;
}
if
(
other
.
LastModified
!=
0L
)
{
LastModified
=
other
.
LastModified
;
}
if
(
other
.
Bytes
!=
0L
)
{
Bytes
=
other
.
Bytes
;
}
lines_
.
Add
(
other
.
lines_
)
;
_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
:
{
Host
=
input
.
ReadString
(
)
;
break
;
}
case
18
:
{
FilePath
=
input
.
ReadString
(
)
;
break
;
}
case
24
:
{
LastModified
=
input
.
ReadInt64
(
)
;
break
;
}
case
32
:
{
Bytes
=
input
.
ReadInt64
(
)
;
break
;
}
case
42
:
{
lines_
.
AddEntriesFrom
(
input
,
_repeated_lines_codec
)
;
break
;
}
}
}
}
}
public
sealed
partial
class
DebuggedSourceFiles
:
pb
::
IMessage
<
DebuggedSourceFiles
>
{
private
static
readonly
pb
::
MessageParser
<
DebuggedSourceFiles
>
_parser
=
new
pb
::
MessageParser
<
DebuggedSourceFiles
>
(
(
)
=>
new
DebuggedSourceFiles
(
)
)
;
private
pb
::
UnknownFieldSet
_unknownFields
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pb
::
MessageParser
<
DebuggedSourceFiles
>
Parser
{
get
{
return
_parser
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Tensorflow
.
DebugReflection
.
Descriptor
.
MessageTypes
[
3
]
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFiles
(
)
{
OnConstruction
(
)
;
}
partial
void
OnConstruction
(
)
;
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFiles
(
DebuggedSourceFiles
other
)
:
this
(
)
{
sourceFiles_
=
other
.
sourceFiles_
.
Clone
(
)
;
_unknownFields
=
pb
::
UnknownFieldSet
.
Clone
(
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
DebuggedSourceFiles
Clone
(
)
{
return
new
DebuggedSourceFiles
(
this
)
;
}
/// <summary>Field number for the "source_files" field.</summary>
public
const
int
SourceFilesFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Tensorflow
.
DebuggedSourceFile
>
_repeated_sourceFiles_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Tensorflow
.
DebuggedSourceFile
.
Parser
)
;
private
readonly
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebuggedSourceFile
>
sourceFiles_
=
new
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebuggedSourceFile
>
(
)
;
/// <summary>
/// A collection of source code files.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
pbc
::
RepeatedField
<
global
::
Tensorflow
.
DebuggedSourceFile
>
SourceFiles
{
get
{
return
sourceFiles_
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
DebuggedSourceFiles
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
bool
Equals
(
DebuggedSourceFiles
other
)
{
if
(
ReferenceEquals
(
other
,
null
)
)
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
)
)
{
return
true
;
}
if
(
!
sourceFiles_
.
Equals
(
other
.
sourceFiles_
)
)
return
false
;
return
Equals
(
_unknownFields
,
other
.
_unknownFields
)
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
override
int
GetHashCode
(
)
{
int
hash
=
1
;
hash
^=
sourceFiles_
.
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
)
{
sourceFiles_
.
WriteTo
(
output
,
_repeated_sourceFiles_codec
)
;
if
(
_unknownFields
!=
null
)
{
_unknownFields
.
WriteTo
(
output
)
;
}
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
int
CalculateSize
(
)
{
int
size
=
0
;
size
+=
sourceFiles_
.
CalculateSize
(
_repeated_sourceFiles_codec
)
;
if
(
_unknownFields
!=
null
)
{
size
+=
_unknownFields
.
CalculateSize
(
)
;
}
return
size
;
}
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
]
public
void
MergeFrom
(
DebuggedSourceFiles
other
)
{
if
(
other
==
null
)
{
return
;
}
sourceFiles_
.
Add
(
other
.
sourceFiles_
)
;
_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
:
{
sourceFiles_
.
AddEntriesFrom
(
input
,
_repeated_sourceFiles_codec
)
;
break
;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
Back
|
FazBrowse Home
|
New Git URL