forked from figroc/tensorflow-serving-client
/
debug.pb.go
352 lines (315 loc) · 14 KB
/
debug.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/protobuf/debug.proto
package tensorflow
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Option for watching a node in TensorFlow Debugger (tfdbg).
type DebugTensorWatch struct {
// Name of the node to watch.
// Use "*" for wildcard. But note: currently, regex is not supported in
// general.
NodeName string `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
// 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.
OutputSlot int32 `protobuf:"varint,2,opt,name=output_slot,json=outputSlot,proto3" json:"output_slot,omitempty"`
// Name(s) of the debugging op(s).
// One or more than one probes on a tensor.
// e.g., {"DebugIdentity", "DebugNanCount"}
DebugOps []string `protobuf:"bytes,3,rep,name=debug_ops,json=debugOps,proto3" json:"debug_ops,omitempty"`
// 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.
DebugUrls []string `protobuf:"bytes,4,rep,name=debug_urls,json=debugUrls,proto3" json:"debug_urls,omitempty"`
// Do not error out if debug op creation fails (e.g., due to dtype
// incompatibility). Instead, just log the failure.
TolerateDebugOpCreationFailures bool `protobuf:"varint,5,opt,name=tolerate_debug_op_creation_failures,json=tolerateDebugOpCreationFailures,proto3" json:"tolerate_debug_op_creation_failures,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugTensorWatch) Reset() { *m = DebugTensorWatch{} }
func (m *DebugTensorWatch) String() string { return proto.CompactTextString(m) }
func (*DebugTensorWatch) ProtoMessage() {}
func (*DebugTensorWatch) Descriptor() ([]byte, []int) {
return fileDescriptor_4fbf764b7c91eef6, []int{0}
}
func (m *DebugTensorWatch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebugTensorWatch.Unmarshal(m, b)
}
func (m *DebugTensorWatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebugTensorWatch.Marshal(b, m, deterministic)
}
func (m *DebugTensorWatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugTensorWatch.Merge(m, src)
}
func (m *DebugTensorWatch) XXX_Size() int {
return xxx_messageInfo_DebugTensorWatch.Size(m)
}
func (m *DebugTensorWatch) XXX_DiscardUnknown() {
xxx_messageInfo_DebugTensorWatch.DiscardUnknown(m)
}
var xxx_messageInfo_DebugTensorWatch proto.InternalMessageInfo
func (m *DebugTensorWatch) GetNodeName() string {
if m != nil {
return m.NodeName
}
return ""
}
func (m *DebugTensorWatch) GetOutputSlot() int32 {
if m != nil {
return m.OutputSlot
}
return 0
}
func (m *DebugTensorWatch) GetDebugOps() []string {
if m != nil {
return m.DebugOps
}
return nil
}
func (m *DebugTensorWatch) GetDebugUrls() []string {
if m != nil {
return m.DebugUrls
}
return nil
}
func (m *DebugTensorWatch) GetTolerateDebugOpCreationFailures() bool {
if m != nil {
return m.TolerateDebugOpCreationFailures
}
return false
}
// Options for initializing DebuggerState in TensorFlow Debugger (tfdbg).
type DebugOptions struct {
// Debugging options
DebugTensorWatchOpts []*DebugTensorWatch `protobuf:"bytes,4,rep,name=debug_tensor_watch_opts,json=debugTensorWatchOpts,proto3" json:"debug_tensor_watch_opts,omitempty"`
// Caller-specified global step count.
// Note that this is distinct from the session run count and the executor
// step count.
GlobalStep int64 `protobuf:"varint,10,opt,name=global_step,json=globalStep,proto3" json:"global_step,omitempty"`
// 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.
ResetDiskByteUsage bool `protobuf:"varint,11,opt,name=reset_disk_byte_usage,json=resetDiskByteUsage,proto3" json:"reset_disk_byte_usage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebugOptions) Reset() { *m = DebugOptions{} }
func (m *DebugOptions) String() string { return proto.CompactTextString(m) }
func (*DebugOptions) ProtoMessage() {}
func (*DebugOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_4fbf764b7c91eef6, []int{1}
}
func (m *DebugOptions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebugOptions.Unmarshal(m, b)
}
func (m *DebugOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebugOptions.Marshal(b, m, deterministic)
}
func (m *DebugOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebugOptions.Merge(m, src)
}
func (m *DebugOptions) XXX_Size() int {
return xxx_messageInfo_DebugOptions.Size(m)
}
func (m *DebugOptions) XXX_DiscardUnknown() {
xxx_messageInfo_DebugOptions.DiscardUnknown(m)
}
var xxx_messageInfo_DebugOptions proto.InternalMessageInfo
func (m *DebugOptions) GetDebugTensorWatchOpts() []*DebugTensorWatch {
if m != nil {
return m.DebugTensorWatchOpts
}
return nil
}
func (m *DebugOptions) GetGlobalStep() int64 {
if m != nil {
return m.GlobalStep
}
return 0
}
func (m *DebugOptions) GetResetDiskByteUsage() bool {
if m != nil {
return m.ResetDiskByteUsage
}
return false
}
type DebuggedSourceFile struct {
// The host name on which a source code file is located.
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// Path to the source code file.
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
// The timestamp at which the source code file is last modified.
LastModified int64 `protobuf:"varint,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"`
// Byte size of the file.
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
// Line-by-line content of the source code file.
Lines []string `protobuf:"bytes,5,rep,name=lines,proto3" json:"lines,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebuggedSourceFile) Reset() { *m = DebuggedSourceFile{} }
func (m *DebuggedSourceFile) String() string { return proto.CompactTextString(m) }
func (*DebuggedSourceFile) ProtoMessage() {}
func (*DebuggedSourceFile) Descriptor() ([]byte, []int) {
return fileDescriptor_4fbf764b7c91eef6, []int{2}
}
func (m *DebuggedSourceFile) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebuggedSourceFile.Unmarshal(m, b)
}
func (m *DebuggedSourceFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebuggedSourceFile.Marshal(b, m, deterministic)
}
func (m *DebuggedSourceFile) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebuggedSourceFile.Merge(m, src)
}
func (m *DebuggedSourceFile) XXX_Size() int {
return xxx_messageInfo_DebuggedSourceFile.Size(m)
}
func (m *DebuggedSourceFile) XXX_DiscardUnknown() {
xxx_messageInfo_DebuggedSourceFile.DiscardUnknown(m)
}
var xxx_messageInfo_DebuggedSourceFile proto.InternalMessageInfo
func (m *DebuggedSourceFile) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func (m *DebuggedSourceFile) GetFilePath() string {
if m != nil {
return m.FilePath
}
return ""
}
func (m *DebuggedSourceFile) GetLastModified() int64 {
if m != nil {
return m.LastModified
}
return 0
}
func (m *DebuggedSourceFile) GetBytes() int64 {
if m != nil {
return m.Bytes
}
return 0
}
func (m *DebuggedSourceFile) GetLines() []string {
if m != nil {
return m.Lines
}
return nil
}
type DebuggedSourceFiles struct {
// A collection of source code files.
SourceFiles []*DebuggedSourceFile `protobuf:"bytes,1,rep,name=source_files,json=sourceFiles,proto3" json:"source_files,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DebuggedSourceFiles) Reset() { *m = DebuggedSourceFiles{} }
func (m *DebuggedSourceFiles) String() string { return proto.CompactTextString(m) }
func (*DebuggedSourceFiles) ProtoMessage() {}
func (*DebuggedSourceFiles) Descriptor() ([]byte, []int) {
return fileDescriptor_4fbf764b7c91eef6, []int{3}
}
func (m *DebuggedSourceFiles) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebuggedSourceFiles.Unmarshal(m, b)
}
func (m *DebuggedSourceFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebuggedSourceFiles.Marshal(b, m, deterministic)
}
func (m *DebuggedSourceFiles) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebuggedSourceFiles.Merge(m, src)
}
func (m *DebuggedSourceFiles) XXX_Size() int {
return xxx_messageInfo_DebuggedSourceFiles.Size(m)
}
func (m *DebuggedSourceFiles) XXX_DiscardUnknown() {
xxx_messageInfo_DebuggedSourceFiles.DiscardUnknown(m)
}
var xxx_messageInfo_DebuggedSourceFiles proto.InternalMessageInfo
func (m *DebuggedSourceFiles) GetSourceFiles() []*DebuggedSourceFile {
if m != nil {
return m.SourceFiles
}
return nil
}
func init() {
proto.RegisterType((*DebugTensorWatch)(nil), "tensorflow.DebugTensorWatch")
proto.RegisterType((*DebugOptions)(nil), "tensorflow.DebugOptions")
proto.RegisterType((*DebuggedSourceFile)(nil), "tensorflow.DebuggedSourceFile")
proto.RegisterType((*DebuggedSourceFiles)(nil), "tensorflow.DebuggedSourceFiles")
}
func init() {
proto.RegisterFile("tensorflow/core/protobuf/debug.proto", fileDescriptor_4fbf764b7c91eef6)
}
var fileDescriptor_4fbf764b7c91eef6 = []byte{
// 483 bytes of a gzipped FileDescriptorProto
0x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