forked from recogni/tfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_def.pb.go
354 lines (313 loc) · 13.6 KB
/
api_def.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/api_def.proto
package tensorflow
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type ApiDef_Visibility int32
const (
// Normally this is "VISIBLE" unless you are inheriting a
// different value from another ApiDef.
ApiDef_DEFAULT_VISIBILITY ApiDef_Visibility = 0
// Publicly visible in the API.
ApiDef_VISIBLE ApiDef_Visibility = 1
// Do not include this op in the generated API. If visibility is
// set to 'SKIP', other fields are ignored for this op.
ApiDef_SKIP ApiDef_Visibility = 2
// Hide this op by putting it into an internal namespace (or whatever
// is appropriate in the target language).
ApiDef_HIDDEN ApiDef_Visibility = 3
)
var ApiDef_Visibility_name = map[int32]string{
0: "DEFAULT_VISIBILITY",
1: "VISIBLE",
2: "SKIP",
3: "HIDDEN",
}
var ApiDef_Visibility_value = map[string]int32{
"DEFAULT_VISIBILITY": 0,
"VISIBLE": 1,
"SKIP": 2,
"HIDDEN": 3,
}
func (x ApiDef_Visibility) String() string {
return proto.EnumName(ApiDef_Visibility_name, int32(x))
}
func (ApiDef_Visibility) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
// Used to specify and override the default API & behavior in the
// generated code for client languages, from what you would get from
// the OpDef alone. There will be a set of ApiDefs that are common
// to all client languages, and another set per client language.
// The per-client-language ApiDefs will inherit values from the
// common ApiDefs which it can either replace or modify.
//
// We separate the API definition from the OpDef so we can evolve the
// API while remaining backwards compatible when interpretting old
// graphs. Overrides go in an "api_def.pbtxt" file with a text-format
// ApiDefs message.
//
// WARNING: Be *very* careful changing the API for any existing op --
// you can change the semantics of existing code. These changes may
// need to wait until a major release of TensorFlow to avoid breaking
// our compatibility promises.
type ApiDef struct {
// Name of the op (in the OpDef) to specify the API for.
GraphOpName string `protobuf:"bytes,1,opt,name=graph_op_name,json=graphOpName" json:"graph_op_name,omitempty"`
Visibility ApiDef_Visibility `protobuf:"varint,2,opt,name=visibility,enum=tensorflow.ApiDef_Visibility" json:"visibility,omitempty"`
Endpoint []*ApiDef_Endpoint `protobuf:"bytes,3,rep,name=endpoint" json:"endpoint,omitempty"`
InArg []*ApiDef_Arg `protobuf:"bytes,4,rep,name=in_arg,json=inArg" json:"in_arg,omitempty"`
OutArg []*ApiDef_Arg `protobuf:"bytes,5,rep,name=out_arg,json=outArg" json:"out_arg,omitempty"`
// List of post-rename in_arg names to specify new argument order.
// Length of arg_order should be either empty to keep current order
// or match size of in_arg.
ArgOrder []string `protobuf:"bytes,11,rep,name=arg_order,json=argOrder" json:"arg_order,omitempty"`
Attr []*ApiDef_Attr `protobuf:"bytes,6,rep,name=attr" json:"attr,omitempty"`
// One-line human-readable description of what the Op does.
Summary string `protobuf:"bytes,7,opt,name=summary" json:"summary,omitempty"`
// Additional, longer human-readable description of what the Op does.
Description string `protobuf:"bytes,8,opt,name=description" json:"description,omitempty"`
// Modify an existing/inherited description by adding text to the beginning
// or end.
DescriptionPrefix string `protobuf:"bytes,9,opt,name=description_prefix,json=descriptionPrefix" json:"description_prefix,omitempty"`
DescriptionSuffix string `protobuf:"bytes,10,opt,name=description_suffix,json=descriptionSuffix" json:"description_suffix,omitempty"`
}
func (m *ApiDef) Reset() { *m = ApiDef{} }
func (m *ApiDef) String() string { return proto.CompactTextString(m) }
func (*ApiDef) ProtoMessage() {}
func (*ApiDef) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *ApiDef) GetGraphOpName() string {
if m != nil {
return m.GraphOpName
}
return ""
}
func (m *ApiDef) GetVisibility() ApiDef_Visibility {
if m != nil {
return m.Visibility
}
return ApiDef_DEFAULT_VISIBILITY
}
func (m *ApiDef) GetEndpoint() []*ApiDef_Endpoint {
if m != nil {
return m.Endpoint
}
return nil
}
func (m *ApiDef) GetInArg() []*ApiDef_Arg {
if m != nil {
return m.InArg
}
return nil
}
func (m *ApiDef) GetOutArg() []*ApiDef_Arg {
if m != nil {
return m.OutArg
}
return nil
}
func (m *ApiDef) GetArgOrder() []string {
if m != nil {
return m.ArgOrder
}
return nil
}
func (m *ApiDef) GetAttr() []*ApiDef_Attr {
if m != nil {
return m.Attr
}
return nil
}
func (m *ApiDef) GetSummary() string {
if m != nil {
return m.Summary
}
return ""
}
func (m *ApiDef) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *ApiDef) GetDescriptionPrefix() string {
if m != nil {
return m.DescriptionPrefix
}
return ""
}
func (m *ApiDef) GetDescriptionSuffix() string {
if m != nil {
return m.DescriptionSuffix
}
return ""
}
// If you specify any endpoint, this will replace all of the
// inherited endpoints. The first endpoint should be the
// "canonical" endpoint, and should not be deprecated (unless all
// endpoints are deprecated).
type ApiDef_Endpoint struct {
// Name should be either like "CamelCaseName" or
// "Package.CamelCaseName".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// First GraphDef version at which the op is disallowed.
DeprecationVersion int32 `protobuf:"varint,2,opt,name=deprecation_version,json=deprecationVersion" json:"deprecation_version,omitempty"`
}
func (m *ApiDef_Endpoint) Reset() { *m = ApiDef_Endpoint{} }
func (m *ApiDef_Endpoint) String() string { return proto.CompactTextString(m) }
func (*ApiDef_Endpoint) ProtoMessage() {}
func (*ApiDef_Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
func (m *ApiDef_Endpoint) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ApiDef_Endpoint) GetDeprecationVersion() int32 {
if m != nil {
return m.DeprecationVersion
}
return 0
}
type ApiDef_Arg struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Change the name used to access this arg in the API from what
// is used in the GraphDef. Note that these names in `backticks`
// will also be replaced in the summary & description fields.
RenameTo string `protobuf:"bytes,2,opt,name=rename_to,json=renameTo" json:"rename_to,omitempty"`
// Note: this will replace any inherited arg doc. There is no
// current way of modifying arg descriptions (other than replacing
// them entirely) as can be done with op descriptions.
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
}
func (m *ApiDef_Arg) Reset() { *m = ApiDef_Arg{} }
func (m *ApiDef_Arg) String() string { return proto.CompactTextString(m) }
func (*ApiDef_Arg) ProtoMessage() {}
func (*ApiDef_Arg) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 1} }
func (m *ApiDef_Arg) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ApiDef_Arg) GetRenameTo() string {
if m != nil {
return m.RenameTo
}
return ""
}
func (m *ApiDef_Arg) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// Description of the graph-construction-time configuration of this
// Op. That is to say, this describes the attr fields that will
// be specified in the NodeDef.
type ApiDef_Attr struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Change the name used to access this attr in the API from what
// is used in the GraphDef. Note that these names in `backticks`
// will also be replaced in the summary & description fields.
RenameTo string `protobuf:"bytes,2,opt,name=rename_to,json=renameTo" json:"rename_to,omitempty"`
// Specify a new default value to use for this attr. This default
// will be used when creating new graphs, as opposed to the
// default in the OpDef, which will be used when interpreting old
// GraphDefs.
DefaultValue *AttrValue `protobuf:"bytes,3,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
// Note: this will replace any inherited attr doc, there is no current
// way of modifying attr descriptions as can be done with op descriptions.
Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
}
func (m *ApiDef_Attr) Reset() { *m = ApiDef_Attr{} }
func (m *ApiDef_Attr) String() string { return proto.CompactTextString(m) }
func (*ApiDef_Attr) ProtoMessage() {}
func (*ApiDef_Attr) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 2} }
func (m *ApiDef_Attr) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ApiDef_Attr) GetRenameTo() string {
if m != nil {
return m.RenameTo
}
return ""
}
func (m *ApiDef_Attr) GetDefaultValue() *AttrValue {
if m != nil {
return m.DefaultValue
}
return nil
}
func (m *ApiDef_Attr) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
type ApiDefs struct {
Op []*ApiDef `protobuf:"bytes,1,rep,name=op" json:"op,omitempty"`
}
func (m *ApiDefs) Reset() { *m = ApiDefs{} }
func (m *ApiDefs) String() string { return proto.CompactTextString(m) }
func (*ApiDefs) ProtoMessage() {}
func (*ApiDefs) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
func (m *ApiDefs) GetOp() []*ApiDef {
if m != nil {
return m.Op
}
return nil
}
func init() {
proto.RegisterType((*ApiDef)(nil), "tensorflow.ApiDef")
proto.RegisterType((*ApiDef_Endpoint)(nil), "tensorflow.ApiDef.Endpoint")
proto.RegisterType((*ApiDef_Arg)(nil), "tensorflow.ApiDef.Arg")
proto.RegisterType((*ApiDef_Attr)(nil), "tensorflow.ApiDef.Attr")
proto.RegisterType((*ApiDefs)(nil), "tensorflow.ApiDefs")
proto.RegisterEnum("tensorflow.ApiDef_Visibility", ApiDef_Visibility_name, ApiDef_Visibility_value)
}
func init() { proto.RegisterFile("tensorflow/core/framework/api_def.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 547 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x8b, 0xd3, 0x40,
0x14, 0xc6, 0x4d, 0x93, 0x4d, 0x93, 0x97, 0x5d, 0xa9, 0x23, 0xae, 0x43, 0x17, 0xa1, 0xf4, 0x62,
0x51, 0xda, 0xc2, 0x7a, 0x10, 0x04, 0x0f, 0x5d, 0x5a, 0x35, 0xb8, 0x6c, 0x4b, 0x5a, 0x8b, 0x9e,
0xc2, 0x6c, 0x33, 0x89, 0x83, 0x6d, 0x66, 0x98, 0x4c, 0xba, 0xee, 0x1f, 0xe2, 0x7f, 0xea, 0xc1,
0xa3, 0x64, 0xb2, 0xdb, 0xc6, 0xb6, 0x2c, 0x78, 0xcb, 0x9b, 0xf7, 0xfb, 0xbe, 0x0c, 0xdf, 0xbc,
0x07, 0x2f, 0x15, 0x4d, 0x33, 0x2e, 0xe3, 0x25, 0xbf, 0xe9, 0x2f, 0xb8, 0xa4, 0xfd, 0x58, 0x92,
0x15, 0xbd, 0xe1, 0xf2, 0x47, 0x9f, 0x08, 0x16, 0x46, 0x34, 0xee, 0x09, 0xc9, 0x15, 0x47, 0xb0,
0x05, 0x9b, 0xaf, 0x1e, 0x10, 0x29, 0x25, 0xc3, 0x35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