-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug_event.pb.go
1510 lines (1349 loc) · 59 KB
/
debug_event.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.16.0
// source: tensorflow/core/protobuf/debug_event.proto
package for_core_protos_go_proto
import (
tensor_go_proto "github.com/frankpacini/tensorflow/tensorflow/go/core/framework/tensor_go_proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Available modes for extracting debugging information from a Tensor.
// TODO(cais): Document the detailed column names and semantics in a separate
// markdown file once the implementation settles.
type TensorDebugMode int32
const (
TensorDebugMode_UNSPECIFIED TensorDebugMode = 0
// Only records what tensors are computed, eagerly or in graphs.
// No information regarding the value of the tensor is available.
TensorDebugMode_NO_TENSOR TensorDebugMode = 1
// A minimalist health summary for float-type tensors.
// Contains information only about the presence/absence of pathological
// values including Infinity and NaN.
// Applicable only to float dtypes.
TensorDebugMode_CURT_HEALTH TensorDebugMode = 2
// A concise health summary for float-type tensors.
// Contains more information that CURT_HEALTH.
// Infinity and NaN are treated differently.
// Applicable only to float and integer dtypes.
TensorDebugMode_CONCISE_HEALTH TensorDebugMode = 3
// A detailed health summary.
// Contains further detailed information than `CONCISE_HEALTH`.
// Information about device, dtype and shape are included.
// Counts for various types of values (Infinity, NaN, negative, zero,
// positive) are included.
// Applicable to float, integer and boolean dtypes.
TensorDebugMode_FULL_HEALTH TensorDebugMode = 4
// Provides full runtime shape information, up to a maximum rank, beyond
// which the dimension sizes are truncated.
TensorDebugMode_SHAPE TensorDebugMode = 5
// Full numeric summary.
// Including device, dtype, shape, counts of various types of values
// (Infinity, NaN, negative, zero, positive), and summary statistics
// (minimum, maximum, mean and variance).
// Applicable to float, integer and boolean dtypes.
TensorDebugMode_FULL_NUMERICS TensorDebugMode = 6
// Full tensor value.
TensorDebugMode_FULL_TENSOR TensorDebugMode = 7
// Reduce the elements of a tensor to a rank-1 tensor of shape [3], in which
// - the 1st element is -inf if any element of the tensor is -inf,
// or zero otherwise.
// - the 2nd element is +inf if any element of the tensor is +inf,
// or zero otherwise.
// - the 3rd element is nan if any element of the tensor is nan, or zero
// otherwise.
TensorDebugMode_REDUCE_INF_NAN_THREE_SLOTS TensorDebugMode = 8
)
// Enum value maps for TensorDebugMode.
var (
TensorDebugMode_name = map[int32]string{
0: "UNSPECIFIED",
1: "NO_TENSOR",
2: "CURT_HEALTH",
3: "CONCISE_HEALTH",
4: "FULL_HEALTH",
5: "SHAPE",
6: "FULL_NUMERICS",
7: "FULL_TENSOR",
8: "REDUCE_INF_NAN_THREE_SLOTS",
}
TensorDebugMode_value = map[string]int32{
"UNSPECIFIED": 0,
"NO_TENSOR": 1,
"CURT_HEALTH": 2,
"CONCISE_HEALTH": 3,
"FULL_HEALTH": 4,
"SHAPE": 5,
"FULL_NUMERICS": 6,
"FULL_TENSOR": 7,
"REDUCE_INF_NAN_THREE_SLOTS": 8,
}
)
func (x TensorDebugMode) Enum() *TensorDebugMode {
p := new(TensorDebugMode)
*p = x
return p
}
func (x TensorDebugMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TensorDebugMode) Descriptor() protoreflect.EnumDescriptor {
return file_tensorflow_core_protobuf_debug_event_proto_enumTypes[0].Descriptor()
}
func (TensorDebugMode) Type() protoreflect.EnumType {
return &file_tensorflow_core_protobuf_debug_event_proto_enumTypes[0]
}
func (x TensorDebugMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TensorDebugMode.Descriptor instead.
func (TensorDebugMode) EnumDescriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{0}
}
// An Event related to the debugging of a TensorFlow program.
type DebugEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp in seconds (with microsecond precision).
WallTime float64 `protobuf:"fixed64,1,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"`
// Step of training (if available).
Step int64 `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
// Types that are assignable to What:
// *DebugEvent_DebugMetadata
// *DebugEvent_SourceFile
// *DebugEvent_StackFrameWithId
// *DebugEvent_GraphOpCreation
// *DebugEvent_DebuggedGraph
// *DebugEvent_Execution
// *DebugEvent_GraphExecutionTrace
// *DebugEvent_GraphId
// *DebugEvent_DebuggedDevice
What isDebugEvent_What `protobuf_oneof:"what"`
}
func (x *DebugEvent) Reset() {
*x = DebugEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DebugEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DebugEvent) ProtoMessage() {}
func (x *DebugEvent) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DebugEvent.ProtoReflect.Descriptor instead.
func (*DebugEvent) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{0}
}
func (x *DebugEvent) GetWallTime() float64 {
if x != nil {
return x.WallTime
}
return 0
}
func (x *DebugEvent) GetStep() int64 {
if x != nil {
return x.Step
}
return 0
}
func (m *DebugEvent) GetWhat() isDebugEvent_What {
if m != nil {
return m.What
}
return nil
}
func (x *DebugEvent) GetDebugMetadata() *DebugMetadata {
if x, ok := x.GetWhat().(*DebugEvent_DebugMetadata); ok {
return x.DebugMetadata
}
return nil
}
func (x *DebugEvent) GetSourceFile() *SourceFile {
if x, ok := x.GetWhat().(*DebugEvent_SourceFile); ok {
return x.SourceFile
}
return nil
}
func (x *DebugEvent) GetStackFrameWithId() *StackFrameWithId {
if x, ok := x.GetWhat().(*DebugEvent_StackFrameWithId); ok {
return x.StackFrameWithId
}
return nil
}
func (x *DebugEvent) GetGraphOpCreation() *GraphOpCreation {
if x, ok := x.GetWhat().(*DebugEvent_GraphOpCreation); ok {
return x.GraphOpCreation
}
return nil
}
func (x *DebugEvent) GetDebuggedGraph() *DebuggedGraph {
if x, ok := x.GetWhat().(*DebugEvent_DebuggedGraph); ok {
return x.DebuggedGraph
}
return nil
}
func (x *DebugEvent) GetExecution() *Execution {
if x, ok := x.GetWhat().(*DebugEvent_Execution); ok {
return x.Execution
}
return nil
}
func (x *DebugEvent) GetGraphExecutionTrace() *GraphExecutionTrace {
if x, ok := x.GetWhat().(*DebugEvent_GraphExecutionTrace); ok {
return x.GraphExecutionTrace
}
return nil
}
func (x *DebugEvent) GetGraphId() string {
if x, ok := x.GetWhat().(*DebugEvent_GraphId); ok {
return x.GraphId
}
return ""
}
func (x *DebugEvent) GetDebuggedDevice() *DebuggedDevice {
if x, ok := x.GetWhat().(*DebugEvent_DebuggedDevice); ok {
return x.DebuggedDevice
}
return nil
}
type isDebugEvent_What interface {
isDebugEvent_What()
}
type DebugEvent_DebugMetadata struct {
// Metadata related to this debugging data.
DebugMetadata *DebugMetadata `protobuf:"bytes,3,opt,name=debug_metadata,json=debugMetadata,proto3,oneof"`
}
type DebugEvent_SourceFile struct {
// The content of a source file.
SourceFile *SourceFile `protobuf:"bytes,4,opt,name=source_file,json=sourceFile,proto3,oneof"`
}
type DebugEvent_StackFrameWithId struct {
// A stack frame (filename, line number and column number, function name and
// code string) with ID.
StackFrameWithId *StackFrameWithId `protobuf:"bytes,6,opt,name=stack_frame_with_id,json=stackFrameWithId,proto3,oneof"`
}
type DebugEvent_GraphOpCreation struct {
// The creation of an op within a graph (e.g., a FuncGraph compiled from
// a Python function).
GraphOpCreation *GraphOpCreation `protobuf:"bytes,7,opt,name=graph_op_creation,json=graphOpCreation,proto3,oneof"`
}
type DebugEvent_DebuggedGraph struct {
// Information about a debugged graph.
DebuggedGraph *DebuggedGraph `protobuf:"bytes,8,opt,name=debugged_graph,json=debuggedGraph,proto3,oneof"`
}
type DebugEvent_Execution struct {
// Execution of an op or a Graph (e.g., a tf.function).
Execution *Execution `protobuf:"bytes,9,opt,name=execution,proto3,oneof"`
}
type DebugEvent_GraphExecutionTrace struct {
// A graph execution trace: Contains information about the intermediate
// tensors computed during the graph execution.
GraphExecutionTrace *GraphExecutionTrace `protobuf:"bytes,10,opt,name=graph_execution_trace,json=graphExecutionTrace,proto3,oneof"`
}
type DebugEvent_GraphId struct {
// The ID of the graph (i.e., FuncGraph) executed here: applicable only
// to the execution of a FuncGraph.
GraphId string `protobuf:"bytes,11,opt,name=graph_id,json=graphId,proto3,oneof"`
}
type DebugEvent_DebuggedDevice struct {
// A device on which debugger-instrumented ops and/or tensors reside.
DebuggedDevice *DebuggedDevice `protobuf:"bytes,12,opt,name=debugged_device,json=debuggedDevice,proto3,oneof"`
}
func (*DebugEvent_DebugMetadata) isDebugEvent_What() {}
func (*DebugEvent_SourceFile) isDebugEvent_What() {}
func (*DebugEvent_StackFrameWithId) isDebugEvent_What() {}
func (*DebugEvent_GraphOpCreation) isDebugEvent_What() {}
func (*DebugEvent_DebuggedGraph) isDebugEvent_What() {}
func (*DebugEvent_Execution) isDebugEvent_What() {}
func (*DebugEvent_GraphExecutionTrace) isDebugEvent_What() {}
func (*DebugEvent_GraphId) isDebugEvent_What() {}
func (*DebugEvent_DebuggedDevice) isDebugEvent_What() {}
// Metadata about the debugger and the debugged TensorFlow program.
type DebugMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Version of TensorFlow.
TensorflowVersion string `protobuf:"bytes,1,opt,name=tensorflow_version,json=tensorflowVersion,proto3" json:"tensorflow_version,omitempty"`
// Version of the DebugEvent file format.
// Has a format of "debug.Event:<number>", e.g., "debug.Event:1".
FileVersion string `protobuf:"bytes,2,opt,name=file_version,json=fileVersion,proto3" json:"file_version,omitempty"`
// A unique ID for the current run of tfdbg.
// A run of tfdbg is defined as a TensorFlow job instrumented by tfdbg.
// Multiple hosts in a distributed TensorFlow job instrumented by tfdbg
// have the same ID.
TfdbgRunId string `protobuf:"bytes,3,opt,name=tfdbg_run_id,json=tfdbgRunId,proto3" json:"tfdbg_run_id,omitempty"`
}
func (x *DebugMetadata) Reset() {
*x = DebugMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DebugMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DebugMetadata) ProtoMessage() {}
func (x *DebugMetadata) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DebugMetadata.ProtoReflect.Descriptor instead.
func (*DebugMetadata) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{1}
}
func (x *DebugMetadata) GetTensorflowVersion() string {
if x != nil {
return x.TensorflowVersion
}
return ""
}
func (x *DebugMetadata) GetFileVersion() string {
if x != nil {
return x.FileVersion
}
return ""
}
func (x *DebugMetadata) GetTfdbgRunId() string {
if x != nil {
return x.TfdbgRunId
}
return ""
}
// Content of a source file involved in the execution of the debugged TensorFlow
// program.
type SourceFile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Path to the file.
FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
// Name of the host on which the file is located.
HostName string `protobuf:"bytes,2,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
// Line-by-line content of the file.
Lines []string `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
}
func (x *SourceFile) Reset() {
*x = SourceFile{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SourceFile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SourceFile) ProtoMessage() {}
func (x *SourceFile) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SourceFile.ProtoReflect.Descriptor instead.
func (*SourceFile) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{2}
}
func (x *SourceFile) GetFilePath() string {
if x != nil {
return x.FilePath
}
return ""
}
func (x *SourceFile) GetHostName() string {
if x != nil {
return x.HostName
}
return ""
}
func (x *SourceFile) GetLines() []string {
if x != nil {
return x.Lines
}
return nil
}
// A stack frame with ID.
type StackFrameWithId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// A unique ID for the stack frame: A UUID-like string.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Stack frame, i.e., a frame of a stack trace, containing information
// regarding the file name, line number, function name, code content
// of the line, and column number (if available).
FileLineCol *GraphDebugInfo_FileLineCol `protobuf:"bytes,2,opt,name=file_line_col,json=fileLineCol,proto3" json:"file_line_col,omitempty"`
}
func (x *StackFrameWithId) Reset() {
*x = StackFrameWithId{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StackFrameWithId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StackFrameWithId) ProtoMessage() {}
func (x *StackFrameWithId) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StackFrameWithId.ProtoReflect.Descriptor instead.
func (*StackFrameWithId) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{3}
}
func (x *StackFrameWithId) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *StackFrameWithId) GetFileLineCol() *GraphDebugInfo_FileLineCol {
if x != nil {
return x.FileLineCol
}
return nil
}
// Code location information: A stack trace with host-name information.
// Instead of encoding the detailed stack trace, this proto refers to IDs of
// stack frames stored as `StackFrameWithId` protos.
type CodeLocation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Host name on which the source files are located.
HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"`
// ID to a stack frame, each of which is pointed to
// by a unique ID. The ordering of the frames is consistent with Python's
// `traceback.extract_tb()`.
StackFrameIds []string `protobuf:"bytes,2,rep,name=stack_frame_ids,json=stackFrameIds,proto3" json:"stack_frame_ids,omitempty"`
}
func (x *CodeLocation) Reset() {
*x = CodeLocation{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CodeLocation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CodeLocation) ProtoMessage() {}
func (x *CodeLocation) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CodeLocation.ProtoReflect.Descriptor instead.
func (*CodeLocation) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{4}
}
func (x *CodeLocation) GetHostName() string {
if x != nil {
return x.HostName
}
return ""
}
func (x *CodeLocation) GetStackFrameIds() []string {
if x != nil {
return x.StackFrameIds
}
return nil
}
// The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
type GraphOpCreation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of the op (e.g., "MatMul").
OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"`
// Name of the op (e.g., "Dense/MatMul_1").
OpName string `protobuf:"bytes,2,opt,name=op_name,json=opName,proto3" json:"op_name,omitempty"`
// Name of the graph that the op is a part of (if available).
GraphName string `protobuf:"bytes,3,opt,name=graph_name,json=graphName,proto3" json:"graph_name,omitempty"`
// Unique ID of the graph (generated by debugger).
// This is the ID of the immediately-enclosing graph.
GraphId string `protobuf:"bytes,4,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"`
// Name of the device that the op is assigned to (if available).
DeviceName string `protobuf:"bytes,5,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
// Names of the input tensors to the op.
InputNames []string `protobuf:"bytes,6,rep,name=input_names,json=inputNames,proto3" json:"input_names,omitempty"`
// Number of output tensors emitted by the op.
NumOutputs int32 `protobuf:"varint,7,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"`
// The unique ID for code location (stack trace) of the op's creation.
CodeLocation *CodeLocation `protobuf:"bytes,8,opt,name=code_location,json=codeLocation,proto3" json:"code_location,omitempty"`
// Unique IDs for the output tensors of this op.
OutputTensorIds []int32 `protobuf:"varint,9,rep,packed,name=output_tensor_ids,json=outputTensorIds,proto3" json:"output_tensor_ids,omitempty"`
}
func (x *GraphOpCreation) Reset() {
*x = GraphOpCreation{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GraphOpCreation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GraphOpCreation) ProtoMessage() {}
func (x *GraphOpCreation) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GraphOpCreation.ProtoReflect.Descriptor instead.
func (*GraphOpCreation) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{5}
}
func (x *GraphOpCreation) GetOpType() string {
if x != nil {
return x.OpType
}
return ""
}
func (x *GraphOpCreation) GetOpName() string {
if x != nil {
return x.OpName
}
return ""
}
func (x *GraphOpCreation) GetGraphName() string {
if x != nil {
return x.GraphName
}
return ""
}
func (x *GraphOpCreation) GetGraphId() string {
if x != nil {
return x.GraphId
}
return ""
}
func (x *GraphOpCreation) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *GraphOpCreation) GetInputNames() []string {
if x != nil {
return x.InputNames
}
return nil
}
func (x *GraphOpCreation) GetNumOutputs() int32 {
if x != nil {
return x.NumOutputs
}
return 0
}
func (x *GraphOpCreation) GetCodeLocation() *CodeLocation {
if x != nil {
return x.CodeLocation
}
return nil
}
func (x *GraphOpCreation) GetOutputTensorIds() []int32 {
if x != nil {
return x.OutputTensorIds
}
return nil
}
// A debugger-instrumented graph.
type DebuggedGraph struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// An ID for the graph.
// This can be used up to look up graph names. Generated by the debugger.
GraphId string `protobuf:"bytes,1,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"`
// Name of the graph (if available).
GraphName string `protobuf:"bytes,2,opt,name=graph_name,json=graphName,proto3" json:"graph_name,omitempty"`
// Names of the instrumented ops. This can be used to look up op name
// based on the numeric-summary tensors (2nd column).
InstrumentedOps []string `protobuf:"bytes,3,rep,name=instrumented_ops,json=instrumentedOps,proto3" json:"instrumented_ops,omitempty"`
// Original (uninstrumented) GraphDef (if available).
OriginalGraphDef []byte `protobuf:"bytes,4,opt,name=original_graph_def,json=originalGraphDef,proto3" json:"original_graph_def,omitempty"`
// An encoded version of a GraphDef.
// This graph may include the debugger-inserted ops.
InstrumentedGraphDef []byte `protobuf:"bytes,5,opt,name=instrumented_graph_def,json=instrumentedGraphDef,proto3" json:"instrumented_graph_def,omitempty"`
// IDs of the immediate enclosing context (graph), if any.
OuterContextId string `protobuf:"bytes,6,opt,name=outer_context_id,json=outerContextId,proto3" json:"outer_context_id,omitempty"`
}
func (x *DebuggedGraph) Reset() {
*x = DebuggedGraph{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DebuggedGraph) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DebuggedGraph) ProtoMessage() {}
func (x *DebuggedGraph) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DebuggedGraph.ProtoReflect.Descriptor instead.
func (*DebuggedGraph) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{6}
}
func (x *DebuggedGraph) GetGraphId() string {
if x != nil {
return x.GraphId
}
return ""
}
func (x *DebuggedGraph) GetGraphName() string {
if x != nil {
return x.GraphName
}
return ""
}
func (x *DebuggedGraph) GetInstrumentedOps() []string {
if x != nil {
return x.InstrumentedOps
}
return nil
}
func (x *DebuggedGraph) GetOriginalGraphDef() []byte {
if x != nil {
return x.OriginalGraphDef
}
return nil
}
func (x *DebuggedGraph) GetInstrumentedGraphDef() []byte {
if x != nil {
return x.InstrumentedGraphDef
}
return nil
}
func (x *DebuggedGraph) GetOuterContextId() string {
if x != nil {
return x.OuterContextId
}
return ""
}
// A device on which ops and/or tensors are instrumented by the debugger.
type DebuggedDevice struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the device.
DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
// A debugger-generated ID for the device. Guaranteed to be unique within
// the scope of the debugged TensorFlow program, including single-host and
// multi-host settings.
// TODO(cais): Test the uniqueness guarantee in multi-host settings.
DeviceId int32 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
}
func (x *DebuggedDevice) Reset() {
*x = DebuggedDevice{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DebuggedDevice) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DebuggedDevice) ProtoMessage() {}
func (x *DebuggedDevice) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DebuggedDevice.ProtoReflect.Descriptor instead.
func (*DebuggedDevice) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{7}
}
func (x *DebuggedDevice) GetDeviceName() string {
if x != nil {
return x.DeviceName
}
return ""
}
func (x *DebuggedDevice) GetDeviceId() int32 {
if x != nil {
return x.DeviceId
}
return 0
}
// Data relating to the eager execution of an op or a Graph.
// For a op that generates N output tensors (N >= 0), only one
// Execution proto will be used to describe the execution event.
type Execution struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Op type (e.g., "MatMul").
// In the case of a Graph, this is the name of the Graph.
OpType string `protobuf:"bytes,1,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"`
// Number of output tensors.
NumOutputs int32 `protobuf:"varint,2,opt,name=num_outputs,json=numOutputs,proto3" json:"num_outputs,omitempty"`
// The graph that's executed: applicable only to the eager
// execution of a FuncGraph.
GraphId string `protobuf:"bytes,3,opt,name=graph_id,json=graphId,proto3" json:"graph_id,omitempty"`
// IDs of the input tensors (if available).
InputTensorIds []int64 `protobuf:"varint,4,rep,packed,name=input_tensor_ids,json=inputTensorIds,proto3" json:"input_tensor_ids,omitempty"`
// IDs of the output tensors (if availbable).
// If specified, must have the same length as tensor_protos.
OutputTensorIds []int64 `protobuf:"varint,5,rep,packed,name=output_tensor_ids,json=outputTensorIds,proto3" json:"output_tensor_ids,omitempty"`
// Type of the tensor value encapsulated in this proto.
TensorDebugMode TensorDebugMode `protobuf:"varint,6,opt,name=tensor_debug_mode,json=tensorDebugMode,proto3,enum=tensorflow.TensorDebugMode" json:"tensor_debug_mode,omitempty"`
// Output Tensor values in the type described by `tensor_value_type`.
// The length of this should match `num_outputs`.
TensorProtos []*tensor_go_proto.TensorProto `protobuf:"bytes,7,rep,name=tensor_protos,json=tensorProtos,proto3" json:"tensor_protos,omitempty"`
// Stack trace of the eager execution.
CodeLocation *CodeLocation `protobuf:"bytes,8,opt,name=code_location,json=codeLocation,proto3" json:"code_location,omitempty"`
// Debugged-generated IDs of the devices on which the output tensors reside.
// To look up details about the device (e.g., name), cross-reference this
// field with the DebuggedDevice messages.
OutputTensorDeviceIds []int32 `protobuf:"varint,9,rep,packed,name=output_tensor_device_ids,json=outputTensorDeviceIds,proto3" json:"output_tensor_device_ids,omitempty"`
}
func (x *Execution) Reset() {
*x = Execution{}
if protoimpl.UnsafeEnabled {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Execution) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Execution) ProtoMessage() {}
func (x *Execution) ProtoReflect() protoreflect.Message {
mi := &file_tensorflow_core_protobuf_debug_event_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Execution.ProtoReflect.Descriptor instead.
func (*Execution) Descriptor() ([]byte, []int) {
return file_tensorflow_core_protobuf_debug_event_proto_rawDescGZIP(), []int{8}
}
func (x *Execution) GetOpType() string {
if x != nil {
return x.OpType
}
return ""
}
func (x *Execution) GetNumOutputs() int32 {
if x != nil {
return x.NumOutputs
}
return 0
}
func (x *Execution) GetGraphId() string {
if x != nil {
return x.GraphId
}
return ""
}
func (x *Execution) GetInputTensorIds() []int64 {
if x != nil {
return x.InputTensorIds
}
return nil
}
func (x *Execution) GetOutputTensorIds() []int64 {
if x != nil {
return x.OutputTensorIds
}
return nil
}
func (x *Execution) GetTensorDebugMode() TensorDebugMode {
if x != nil {
return x.TensorDebugMode
}
return TensorDebugMode_UNSPECIFIED
}
func (x *Execution) GetTensorProtos() []*tensor_go_proto.TensorProto {
if x != nil {
return x.TensorProtos
}
return nil
}
func (x *Execution) GetCodeLocation() *CodeLocation {
if x != nil {
return x.CodeLocation
}
return nil
}
func (x *Execution) GetOutputTensorDeviceIds() []int32 {
if x != nil {
return x.OutputTensorDeviceIds