forked from TIBCOSoftware/flogo-contrib
/
op_def.pb.go
executable file
·416 lines (369 loc) · 15.9 KB
/
op_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
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/op_def.proto
/*
Package tensorflow is a generated protocol buffer package.
It is generated from these files:
tensorflow/core/framework/op_def.proto
It has these top-level messages:
OpDef
OpDeprecation
OpList
*/
package tffw
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
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// Defines an operation. A NodeDef in a GraphDef specifies an Op by
// using the "op" field which should match the name of a OpDef.
type OpDef struct {
// Op names starting with an underscore are reserved for internal use.
// Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Description of the input(s).
InputArg []*OpDef_ArgDef `protobuf:"bytes,2,rep,name=input_arg,json=inputArg" json:"input_arg,omitempty"`
// Description of the output(s).
OutputArg []*OpDef_ArgDef `protobuf:"bytes,3,rep,name=output_arg,json=outputArg" json:"output_arg,omitempty"`
Attr []*OpDef_AttrDef `protobuf:"bytes,4,rep,name=attr" json:"attr,omitempty"`
// Optional deprecation based on GraphDef versions.
Deprecation *OpDeprecation `protobuf:"bytes,8,opt,name=deprecation" json:"deprecation,omitempty"`
// One-line human-readable description of what the Op does.
Summary string `protobuf:"bytes,5,opt,name=summary" json:"summary,omitempty"`
// Additional, longer human-readable description of what the Op does.
Description string `protobuf:"bytes,6,opt,name=description" json:"description,omitempty"`
// True if the operation is commutative ("op(a,b) == op(b,a)" for all inputs)
IsCommutative bool `protobuf:"varint,18,opt,name=is_commutative,json=isCommutative" json:"is_commutative,omitempty"`
// If is_aggregate is true, then this operation accepts N >= 2
// inputs and produces 1 output all of the same type. Should be
// associative and commutative, and produce output with the same
// shape as the input. The optimizer may replace an aggregate op
// taking input from multiple devices with a tree of aggregate ops
// that aggregate locally within each device (and possibly within
// groups of nearby devices) before communicating.
// TODO(josh11b): Implement that optimization.
IsAggregate bool `protobuf:"varint,16,opt,name=is_aggregate,json=isAggregate" json:"is_aggregate,omitempty"`
// By default Ops may be moved between devices. Stateful ops should
// either not be moved, or should only be moved if that state can also
// be moved (e.g. via some sort of save / restore).
// Stateful ops are guaranteed to never be optimized away by Common
// Subexpression Elimination (CSE).
IsStateful bool `protobuf:"varint,17,opt,name=is_stateful,json=isStateful" json:"is_stateful,omitempty"`
// By default, all inputs to an Op must be initialized Tensors. Ops
// that may initialize tensors for the first time should set this
// field to true, to allow the Op to take an uninitialized Tensor as
// input.
AllowsUninitializedInput bool `protobuf:"varint,19,opt,name=allows_uninitialized_input,json=allowsUninitializedInput" json:"allows_uninitialized_input,omitempty"`
}
func (m *OpDef) Reset() { *m = OpDef{} }
func (m *OpDef) String() string { return proto.CompactTextString(m) }
func (*OpDef) ProtoMessage() {}
func (*OpDef) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
func (m *OpDef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OpDef) GetInputArg() []*OpDef_ArgDef {
if m != nil {
return m.InputArg
}
return nil
}
func (m *OpDef) GetOutputArg() []*OpDef_ArgDef {
if m != nil {
return m.OutputArg
}
return nil
}
func (m *OpDef) GetAttr() []*OpDef_AttrDef {
if m != nil {
return m.Attr
}
return nil
}
func (m *OpDef) GetDeprecation() *OpDeprecation {
if m != nil {
return m.Deprecation
}
return nil
}
func (m *OpDef) GetSummary() string {
if m != nil {
return m.Summary
}
return ""
}
func (m *OpDef) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *OpDef) GetIsCommutative() bool {
if m != nil {
return m.IsCommutative
}
return false
}
func (m *OpDef) GetIsAggregate() bool {
if m != nil {
return m.IsAggregate
}
return false
}
func (m *OpDef) GetIsStateful() bool {
if m != nil {
return m.IsStateful
}
return false
}
func (m *OpDef) GetAllowsUninitializedInput() bool {
if m != nil {
return m.AllowsUninitializedInput
}
return false
}
// For describing inputs and outputs.
type OpDef_ArgDef struct {
// Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Human readable description.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
// Describes the type of one or more tensors that are accepted/produced
// by this input/output arg. The only legal combinations are:
// * For a single tensor: either the "type" field is set or the
// "type_attr" field is set to the name of an attr with type "type".
// * For a sequence of tensors with the same type: the "number_attr"
// field will be set to the name of an attr with type "int", and
// either the "type" or "type_attr" field will be set as for
// single tensors.
// * For a sequence of tensors, the "type_list_attr" field will be set
// to the name of an attr with type "list(type)".
Type DataType `protobuf:"varint,3,opt,name=type,enum=tensorflow.DataType" json:"type,omitempty"`
TypeAttr string `protobuf:"bytes,4,opt,name=type_attr,json=typeAttr" json:"type_attr,omitempty"`
NumberAttr string `protobuf:"bytes,5,opt,name=number_attr,json=numberAttr" json:"number_attr,omitempty"`
// If specified, attr must have type "list(type)", and none of
// type, type_attr, and number_attr may be specified.
TypeListAttr string `protobuf:"bytes,6,opt,name=type_list_attr,json=typeListAttr" json:"type_list_attr,omitempty"`
// For inputs: if true, the inputs are required to be refs.
// By default, inputs can be either refs or non-refs.
// For outputs: if true, outputs are refs, otherwise they are not.
IsRef bool `protobuf:"varint,16,opt,name=is_ref,json=isRef" json:"is_ref,omitempty"`
}
func (m *OpDef_ArgDef) Reset() { *m = OpDef_ArgDef{} }
func (m *OpDef_ArgDef) String() string { return proto.CompactTextString(m) }
func (*OpDef_ArgDef) ProtoMessage() {}
func (*OpDef_ArgDef) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 0} }
func (m *OpDef_ArgDef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OpDef_ArgDef) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *OpDef_ArgDef) GetType() DataType {
if m != nil {
return m.Type
}
return DataType_DT_INVALID
}
func (m *OpDef_ArgDef) GetTypeAttr() string {
if m != nil {
return m.TypeAttr
}
return ""
}
func (m *OpDef_ArgDef) GetNumberAttr() string {
if m != nil {
return m.NumberAttr
}
return ""
}
func (m *OpDef_ArgDef) GetTypeListAttr() string {
if m != nil {
return m.TypeListAttr
}
return ""
}
func (m *OpDef_ArgDef) GetIsRef() bool {
if m != nil {
return m.IsRef
}
return false
}
// 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 OpDef_AttrDef struct {
// A descriptive name for the argument. May be used, e.g. by the
// Python client, as a keyword argument name, and so should match
// the regexp "[a-z][a-z0-9_]+".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// One of the type names from attr_value.proto ("string", "list(string)",
// "int", etc.).
Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"`
// A reasonable default for this attribute if the user does not supply
// a value. If not specified, the user must supply a value.
DefaultValue *AttrValue `protobuf:"bytes,3,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
// Human-readable description.
Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
// For type == "int", this is a minimum value. For "list(___)"
// types, this is the minimum length.
HasMinimum bool `protobuf:"varint,5,opt,name=has_minimum,json=hasMinimum" json:"has_minimum,omitempty"`
Minimum int64 `protobuf:"varint,6,opt,name=minimum" json:"minimum,omitempty"`
// The set of allowed values. Has type that is the "list" version
// of the "type" field above (uses the "list" field of AttrValue).
// If type == "type" or "list(type)" above, then the "type" field
// of "allowed_values.list" has the set of allowed DataTypes.
// If type == "string" or "list(string)", then the "s" field of
// "allowed_values.list" has the set of allowed strings.
AllowedValues *AttrValue `protobuf:"bytes,7,opt,name=allowed_values,json=allowedValues" json:"allowed_values,omitempty"`
}
func (m *OpDef_AttrDef) Reset() { *m = OpDef_AttrDef{} }
func (m *OpDef_AttrDef) String() string { return proto.CompactTextString(m) }
func (*OpDef_AttrDef) ProtoMessage() {}
func (*OpDef_AttrDef) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0, 1} }
func (m *OpDef_AttrDef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *OpDef_AttrDef) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *OpDef_AttrDef) GetDefaultValue() *AttrValue {
if m != nil {
return m.DefaultValue
}
return nil
}
func (m *OpDef_AttrDef) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *OpDef_AttrDef) GetHasMinimum() bool {
if m != nil {
return m.HasMinimum
}
return false
}
func (m *OpDef_AttrDef) GetMinimum() int64 {
if m != nil {
return m.Minimum
}
return 0
}
func (m *OpDef_AttrDef) GetAllowedValues() *AttrValue {
if m != nil {
return m.AllowedValues
}
return nil
}
// Information about version-dependent deprecation of an op
type OpDeprecation struct {
// First GraphDef version at which the op is disallowed.
Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
// Explanation of why it was deprecated and what to use instead.
Explanation string `protobuf:"bytes,2,opt,name=explanation" json:"explanation,omitempty"`
}
func (m *OpDeprecation) Reset() { *m = OpDeprecation{} }
func (m *OpDeprecation) String() string { return proto.CompactTextString(m) }
func (*OpDeprecation) ProtoMessage() {}
func (*OpDeprecation) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
func (m *OpDeprecation) GetVersion() int32 {
if m != nil {
return m.Version
}
return 0
}
func (m *OpDeprecation) GetExplanation() string {
if m != nil {
return m.Explanation
}
return ""
}
// A collection of OpDefs
type OpList struct {
Op []*OpDef `protobuf:"bytes,1,rep,name=op" json:"op,omitempty"`
}
func (m *OpList) Reset() { *m = OpList{} }
func (m *OpList) String() string { return proto.CompactTextString(m) }
func (*OpList) ProtoMessage() {}
func (*OpList) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
func (m *OpList) GetOp() []*OpDef {
if m != nil {
return m.Op
}
return nil
}
func init() {
proto.RegisterType((*OpDef)(nil), "tensorflow.OpDef")
proto.RegisterType((*OpDef_ArgDef)(nil), "tensorflow.OpDef.ArgDef")
proto.RegisterType((*OpDef_AttrDef)(nil), "tensorflow.OpDef.AttrDef")
proto.RegisterType((*OpDeprecation)(nil), "tensorflow.OpDeprecation")
proto.RegisterType((*OpList)(nil), "tensorflow.OpList")
}
func init() { proto.RegisterFile("tensorflow/core/framework/op_def.proto", fileDescriptor4) }
var fileDescriptor4 = []byte{
// 625 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcb, 0x6e, 0x13, 0x31,
0x14, 0x86, 0x35, 0xb9, 0xe7, 0x4c, 0x13, 0x51, 0x43, 0x25, 0x13, 0x16, 0x4d, 0x2b, 0x8a, 0x22,
0x2e, 0xa9, 0x54, 0x84, 0x90, 0xa0, 0x9b, 0x96, 0x6e, 0x10, 0xa0, 0x56, 0xc3, 0x65, 0x3b, 0x72,
0x13, 0xcf, 0xd4, 0x62, 0x66, 0x6c, 0xd9, 0x9e, 0x96, 0xf2, 0x04, 0xbc, 0x1c, 0x4f, 0xc1, 0x4b,
0xb0, 0x44, 0x3e, 0x9e, 0xb4, 0x43, 0x93, 0xc2, 0x2a, 0xf1, 0x39, 0xdf, 0xef, 0xf1, 0xff, 0xfb,
0x02, 0x8f, 0x2c, 0x2f, 0x8c, 0xd4, 0x49, 0x26, 0x2f, 0x76, 0x67, 0x52, 0xf3, 0xdd, 0x44, 0xb3,
0x9c, 0x5f, 0x48, 0xfd, 0x75, 0x57, 0xaa, 0x78, 0xce, 0x93, 0xa9, 0xd2, 0xd2, 0x4a, 0x02, 0xd7,
0xdc, 0xe8, 0xf1, 0xed, 0x1a, 0x66, 0xad, 0x8e, 0xcf, 0x59, 0x56, 0x72, 0xaf, 0x1b, 0xed, 0xdc,
0xce, 0xda, 0x4b, 0xc5, 0x8d, 0xc7, 0xb6, 0x7f, 0x76, 0xa1, 0x7d, 0xac, 0x8e, 0x78, 0x42, 0x08,
0xb4, 0x0a, 0x96, 0x73, 0x1a, 0x8c, 0x83, 0x49, 0x3f, 0xc2, 0xff, 0xe4, 0x05, 0xf4, 0x45, 0xa1,
0x4a, 0x1b, 0x33, 0x9d, 0xd2, 0xc6, 0xb8, 0x39, 0x09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