forked from recogni/tfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node_def.pb.go
130 lines (117 loc) · 5.38 KB
/
node_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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: tensorflow/core/framework/node_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 NodeDef struct {
// The name given to this operator. Used for naming inputs,
// logging, visualization, etc. Unique within a single GraphDef.
// Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_./]*".
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The operation name. There may be custom parameters in attrs.
// Op names starting with an underscore are reserved for internal use.
Op string `protobuf:"bytes,2,opt,name=op" json:"op,omitempty"`
// Each input is "node:src_output" with "node" being a string name and
// "src_output" indicating which output tensor to use from "node". If
// "src_output" is 0 the ":0" suffix can be omitted. Regular inputs
// may optionally be followed by control inputs that have the format
// "^node".
Input []string `protobuf:"bytes,3,rep,name=input" json:"input,omitempty"`
// A (possibly partial) specification for the device on which this
// node should be placed.
// The expected syntax for this string is as follows:
//
// DEVICE_SPEC ::= PARTIAL_SPEC
//
// PARTIAL_SPEC ::= ("/" CONSTRAINT) *
// CONSTRAINT ::= ("job:" JOB_NAME)
// | ("replica:" [1-9][0-9]*)
// | ("task:" [1-9][0-9]*)
// | ( ("gpu" | "cpu") ":" ([1-9][0-9]* | "*") )
//
// Valid values for this string include:
// * "/job:worker/replica:0/task:1/device:GPU:3" (full specification)
// * "/job:worker/device:GPU:3" (partial specification)
// * "" (no specification)
//
// If the constraints do not resolve to a single device (or if this
// field is empty or not present), the runtime will attempt to
// choose a device automatically.
Device string `protobuf:"bytes,4,opt,name=device" json:"device,omitempty"`
// Operation-specific graph-construction-time configuration.
// Note that this should include all attrs defined in the
// corresponding OpDef, including those with a value matching
// the default -- this allows the default to change and makes
// NodeDefs easier to interpret on their own. However, if
// an attr with a default is not specified in this list, the
// default will be used.
// The "names" (keys) must match the regexp "[a-z][a-z0-9_]+" (and
// one of the names from the corresponding OpDef's attr field).
// The values must have a type matching the corresponding OpDef
// attr's type field.
// TODO(josh11b): Add some examples here showing best practices.
Attr map[string]*AttrValue `protobuf:"bytes,5,rep,name=attr" json:"attr,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *NodeDef) Reset() { *m = NodeDef{} }
func (m *NodeDef) String() string { return proto.CompactTextString(m) }
func (*NodeDef) ProtoMessage() {}
func (*NodeDef) Descriptor() ([]byte, []int) { return fileDescriptor10, []int{0} }
func (m *NodeDef) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *NodeDef) GetOp() string {
if m != nil {
return m.Op
}
return ""
}
func (m *NodeDef) GetInput() []string {
if m != nil {
return m.Input
}
return nil
}
func (m *NodeDef) GetDevice() string {
if m != nil {
return m.Device
}
return ""
}
func (m *NodeDef) GetAttr() map[string]*AttrValue {
if m != nil {
return m.Attr
}
return nil
}
func init() {
proto.RegisterType((*NodeDef)(nil), "tensorflow.NodeDef")
}
func init() { proto.RegisterFile("tensorflow/core/framework/node_def.proto", fileDescriptor10) }
var fileDescriptor10 = []byte{
// 261 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4a, 0xc3, 0x40,
0x10, 0x86, 0xd9,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