forked from recogni/tfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cost_graph.pb.go
295 lines (259 loc) · 11.9 KB
/
cost_graph.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/cost_graph.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 CostGraphDef struct {
Node []*CostGraphDef_Node `protobuf:"bytes,1,rep,name=node" json:"node,omitempty"`
}
func (m *CostGraphDef) Reset() { *m = CostGraphDef{} }
func (m *CostGraphDef) String() string { return proto.CompactTextString(m) }
func (*CostGraphDef) ProtoMessage() {}
func (*CostGraphDef) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *CostGraphDef) GetNode() []*CostGraphDef_Node {
if m != nil {
return m.Node
}
return nil
}
type CostGraphDef_Node struct {
// The name of the node. Names are globally unique.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The device of the node. Can be empty if the node is mapped to the
// default partition or partitioning hasn't been run yet.
Device string `protobuf:"bytes,2,opt,name=device" json:"device,omitempty"`
// The id of the node. Node ids are only unique inside a partition.
Id int32 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
InputInfo []*CostGraphDef_Node_InputInfo `protobuf:"bytes,4,rep,name=input_info,json=inputInfo" json:"input_info,omitempty"`
OutputInfo []*CostGraphDef_Node_OutputInfo `protobuf:"bytes,5,rep,name=output_info,json=outputInfo" json:"output_info,omitempty"`
// Temporary memory used by this node.
TemporaryMemorySize int64 `protobuf:"varint,6,opt,name=temporary_memory_size,json=temporaryMemorySize" json:"temporary_memory_size,omitempty"`
HostTempMemorySize int64 `protobuf:"varint,10,opt,name=host_temp_memory_size,json=hostTempMemorySize" json:"host_temp_memory_size,omitempty"`
DeviceTempMemorySize int64 `protobuf:"varint,11,opt,name=device_temp_memory_size,json=deviceTempMemorySize" json:"device_temp_memory_size,omitempty"`
HostPersistentMemorySize int64 `protobuf:"varint,12,opt,name=host_persistent_memory_size,json=hostPersistentMemorySize" json:"host_persistent_memory_size,omitempty"`
DevicePersistentMemorySize int64 `protobuf:"varint,16,opt,name=device_persistent_memory_size,json=devicePersistentMemorySize" json:"device_persistent_memory_size,omitempty"`
// Estimate of the computational cost of this node, in microseconds.
ComputeCost int64 `protobuf:"varint,9,opt,name=compute_cost,json=computeCost" json:"compute_cost,omitempty"`
// Analytical estimate of the computational cost of this node, in
// microseconds.
ComputeTime int64 `protobuf:"varint,14,opt,name=compute_time,json=computeTime" json:"compute_time,omitempty"`
// Analytical estimate of the memory access cost of this node, in
// microseconds.
MemoryTime int64 `protobuf:"varint,15,opt,name=memory_time,json=memoryTime" json:"memory_time,omitempty"`
// If true, the output is permanent: it can't be discarded, because this
// node is part of the "final output". Nodes may depend on final nodes.
IsFinal bool `protobuf:"varint,7,opt,name=is_final,json=isFinal" json:"is_final,omitempty"`
// Ids of the control inputs for this node.
ControlInput []int32 `protobuf:"varint,8,rep,packed,name=control_input,json=controlInput" json:"control_input,omitempty"`
}
func (m *CostGraphDef_Node) Reset() { *m = CostGraphDef_Node{} }
func (m *CostGraphDef_Node) String() string { return proto.CompactTextString(m) }
func (*CostGraphDef_Node) ProtoMessage() {}
func (*CostGraphDef_Node) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
func (m *CostGraphDef_Node) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CostGraphDef_Node) GetDevice() string {
if m != nil {
return m.Device
}
return ""
}
func (m *CostGraphDef_Node) GetId() int32 {
if m != nil {
return m.Id
}
return 0
}
func (m *CostGraphDef_Node) GetInputInfo() []*CostGraphDef_Node_InputInfo {
if m != nil {
return m.InputInfo
}
return nil
}
func (m *CostGraphDef_Node) GetOutputInfo() []*CostGraphDef_Node_OutputInfo {
if m != nil {
return m.OutputInfo
}
return nil
}
func (m *CostGraphDef_Node) GetTemporaryMemorySize() int64 {
if m != nil {
return m.TemporaryMemorySize
}
return 0
}
func (m *CostGraphDef_Node) GetHostTempMemorySize() int64 {
if m != nil {
return m.HostTempMemorySize
}
return 0
}
func (m *CostGraphDef_Node) GetDeviceTempMemorySize() int64 {
if m != nil {
return m.DeviceTempMemorySize
}
return 0
}
func (m *CostGraphDef_Node) GetHostPersistentMemorySize() int64 {
if m != nil {
return m.HostPersistentMemorySize
}
return 0
}
func (m *CostGraphDef_Node) GetDevicePersistentMemorySize() int64 {
if m != nil {
return m.DevicePersistentMemorySize
}
return 0
}
func (m *CostGraphDef_Node) GetComputeCost() int64 {
if m != nil {
return m.ComputeCost
}
return 0
}
func (m *CostGraphDef_Node) GetComputeTime() int64 {
if m != nil {
return m.ComputeTime
}
return 0
}
func (m *CostGraphDef_Node) GetMemoryTime() int64 {
if m != nil {
return m.MemoryTime
}
return 0
}
func (m *CostGraphDef_Node) GetIsFinal() bool {
if m != nil {
return m.IsFinal
}
return false
}
func (m *CostGraphDef_Node) GetControlInput() []int32 {
if m != nil {
return m.ControlInput
}
return nil
}
// Inputs of this node. They must be executed before this node can be
// executed. An input is a particular output of another node, specified
// by the node id and the output index.
type CostGraphDef_Node_InputInfo struct {
PrecedingNode int32 `protobuf:"varint,1,opt,name=preceding_node,json=precedingNode" json:"preceding_node,omitempty"`
PrecedingPort int32 `protobuf:"varint,2,opt,name=preceding_port,json=precedingPort" json:"preceding_port,omitempty"`
}
func (m *CostGraphDef_Node_InputInfo) Reset() { *m = CostGraphDef_Node_InputInfo{} }
func (m *CostGraphDef_Node_InputInfo) String() string { return proto.CompactTextString(m) }
func (*CostGraphDef_Node_InputInfo) ProtoMessage() {}
func (*CostGraphDef_Node_InputInfo) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0, 0}
}
func (m *CostGraphDef_Node_InputInfo) GetPrecedingNode() int32 {
if m != nil {
return m.PrecedingNode
}
return 0
}
func (m *CostGraphDef_Node_InputInfo) GetPrecedingPort() int32 {
if m != nil {
return m.PrecedingPort
}
return 0
}
// Outputs of this node.
type CostGraphDef_Node_OutputInfo struct {
Size int64 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
// If >= 0, the output is an alias of an input. Note that an alias input
// may itself be an alias. The algorithm will therefore need to follow
// those pointers.
AliasInputPort int64 `protobuf:"varint,2,opt,name=alias_input_port,json=aliasInputPort" json:"alias_input_port,omitempty"`
Shape *TensorShapeProto `protobuf:"bytes,3,opt,name=shape" json:"shape,omitempty"`
Dtype DataType `protobuf:"varint,4,opt,name=dtype,enum=tensorflow.DataType" json:"dtype,omitempty"`
}
func (m *CostGraphDef_Node_OutputInfo) Reset() { *m = CostGraphDef_Node_OutputInfo{} }
func (m *CostGraphDef_Node_OutputInfo) String() string { return proto.CompactTextString(m) }
func (*CostGraphDef_Node_OutputInfo) ProtoMessage() {}
func (*CostGraphDef_Node_OutputInfo) Descriptor() ([]byte, []int) {
return fileDescriptor3, []int{0, 0, 1}
}
func (m *CostGraphDef_Node_OutputInfo) GetSize() int64 {
if m != nil {
return m.Size
}
return 0
}
func (m *CostGraphDef_Node_OutputInfo) GetAliasInputPort() int64 {
if m != nil {
return m.AliasInputPort
}
return 0
}
func (m *CostGraphDef_Node_OutputInfo) GetShape() *TensorShapeProto {
if m != nil {
return m.Shape
}
return nil
}
func (m *CostGraphDef_Node_OutputInfo) GetDtype() DataType {
if m != nil {
return m.Dtype
}
return DataType_DT_INVALID
}
func init() {
proto.RegisterType((*CostGraphDef)(nil), "tensorflow.CostGraphDef")
proto.RegisterType((*CostGraphDef_Node)(nil), "tensorflow.CostGraphDef.Node")
proto.RegisterType((*CostGraphDef_Node_InputInfo)(nil), "tensorflow.CostGraphDef.Node.InputInfo")
proto.RegisterType((*CostGraphDef_Node_OutputInfo)(nil), "tensorflow.CostGraphDef.Node.OutputInfo")
}
func init() { proto.RegisterFile("tensorflow/core/framework/cost_graph.proto", fileDescriptor3) }
var fileDescriptor3 = []byte{
// 588 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0xc1, 0x6e, 0xd3, 0x4e,
0x10, 0xc6, 0xe5, 0x26, 0x69, 0x9a, 0x71, 0x9a, 0x56, 0xfb, 0x6f, 0xff, 0x2c, 0x86, 0x0a, 0x03,
0xaa, 0xb0, 0x2a, 0x94, 0xd2, 0x20, 0x8e, 0x1c, 0x28, 0x55, 0x51, 0x0f, 0x40, 0xe4, 0xe6, 0xc2,
0xc9, 0x32, 0xf6, 0x3a, 0x59, 0x11, 0x7b, 0x57, 0xbb, 0x1b, 0xaa, 0xf4, 0x79, 0x38, 0xf1, 0x64,
0x3c, 0x02, 0x47, 0xb4, 0x63, 0xe3, 0x38, 0x40, 0x73, 0x5b, 0xcf, 0xfc, 0xbe, 0x6f, 0x9c, 0xcd,
0x37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